aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-03-03 13:35:24 +0000
committerPedro Alves <palves@redhat.com>2009-03-03 13:35:24 +0000
commit6aa8e5c2ae66323abb1fb2f8b6c454305781aad2 (patch)
tree5174fb9b017ce06e187bf02b13304d64297ceb0e /gdb/top.c
parent198f1251457bf99a3f3aec2d2db1977b99e6f519 (diff)
downloadfsf-binutils-gdb-6aa8e5c2ae66323abb1fb2f8b6c454305781aad2.zip
fsf-binutils-gdb-6aa8e5c2ae66323abb1fb2f8b6c454305781aad2.tar.gz
fsf-binutils-gdb-6aa8e5c2ae66323abb1fb2f8b6c454305781aad2.tar.bz2
* top.c (quit_target): Check for target_has_execution before
killing or detaching from inferiors.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/top.c b/gdb/top.c
index d676f02..0e133ff 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1246,7 +1246,8 @@ quit_target (void *arg)
struct qt_args *qt = (struct qt_args *)arg;
/* Kill or detach all inferiors. */
- iterate_over_inferiors (kill_or_detach, qt);
+ if (target_has_execution)
+ iterate_over_inferiors (kill_or_detach, qt);
/* Give all pushed targets a chance to do minimal cleanup, and pop
them all out. */