diff options
author | Pedro Alves <palves@redhat.com> | 2009-03-03 13:35:24 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-03-03 13:35:24 +0000 |
commit | 6aa8e5c2ae66323abb1fb2f8b6c454305781aad2 (patch) | |
tree | 5174fb9b017ce06e187bf02b13304d64297ceb0e /gdb/top.c | |
parent | 198f1251457bf99a3f3aec2d2db1977b99e6f519 (diff) | |
download | gdb-6aa8e5c2ae66323abb1fb2f8b6c454305781aad2.zip gdb-6aa8e5c2ae66323abb1fb2f8b6c454305781aad2.tar.gz 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. */ |