* top.c (quit_target): Check for target_has_execution before
killing or detaching from inferiors.
This commit is contained in:
parent
198f125145
commit
6aa8e5c2ae
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user