aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-07-19 23:30:11 +0000
committerJason Molenda <jmolenda@apple.com>1999-07-19 23:30:11 +0000
commitadf40b2e16832f7382ee79e498d43a70ad22e305 (patch)
tree933de2a465a4003b9016471a466079459693ae3e /gdb/target.c
parentdc9e099fc0eced486ae2b49455c9da113c11f4ff (diff)
downloadgdb-adf40b2e16832f7382ee79e498d43a70ad22e305.zip
gdb-adf40b2e16832f7382ee79e498d43a70ad22e305.tar.gz
gdb-adf40b2e16832f7382ee79e498d43a70ad22e305.tar.bz2
import gdb-1999-07-19 snapshot
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c3
1 files changed, 2 insertions, 1 deletions
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.");