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 | |
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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/top.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1f2a8ed..ea0e65f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-03-03 Pedro Alves <pedro@codesourcery.com> + + * top.c (quit_target): Check for target_has_execution before + killing or detaching from inferiors. + 2009-03-02 Joel Brobecker <brobecker@adacore.com> Remove some unused routines. @@ -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. */ |