From: Pedro Alves Date: Tue, 3 Mar 2009 13:35:24 +0000 (+0000) Subject: * top.c (quit_target): Check for target_has_execution before X-Git-Tag: sid-snapshot-20090401~365 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6aa8e5c2ae66323abb1fb2f8b6c454305781aad2;p=platform%2Fupstream%2Fbinutils.git * top.c (quit_target): Check for target_has_execution before killing or detaching from inferiors. --- 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 + + * top.c (quit_target): Check for target_has_execution before + killing or detaching from inferiors. + 2009-03-02 Joel Brobecker Remove some unused routines. 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. */