From adf40b2e16832f7382ee79e498d43a70ad22e305 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Mon, 19 Jul 1999 23:30:11 +0000 Subject: import gdb-1999-07-19 snapshot --- gdb/target.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index 9ba43fd..3c18b40 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -962,7 +962,8 @@ target_preopen (from_tty) if (target_has_execution) { - if (query ("A program is being debugged already. Kill it? ")) + if (!from_tty + || query ("A program is being debugged already. Kill it? ")) target_kill (); else error ("Program not killed."); -- cgit v1.1