aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-08-16 22:12:18 +0000
committerPedro Alves <palves@redhat.com>2008-08-16 22:12:18 +0000
commitaa76d38d1d90e7958dba24494b15ec9798f50229 (patch)
tree3cd16b4ff66b0810d01a9d7ff02880c8aef4e28c /gdb/top.c
parent311a4e6b7b004617841f2a6c657e76dddd7d2249 (diff)
downloadfsf-binutils-gdb-aa76d38d1d90e7958dba24494b15ec9798f50229.zip
fsf-binutils-gdb-aa76d38d1d90e7958dba24494b15ec9798f50229.tar.gz
fsf-binutils-gdb-aa76d38d1d90e7958dba24494b15ec9798f50229.tar.bz2
* target.h (pop_all_targets): Declare.
* target.c (pop_all_targets): New. * top.c (quit_target): Pop all targets instead of just closing the current.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 7f46caf..0ae7ea0 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1222,8 +1222,9 @@ quit_target (void *arg)
target_kill ();
}
- /* UDI wants this, to kill the TIP. */
- target_close (&current_target, 1);
+ /* Give all pushed targets a chance to do minimal cleanup, and pop
+ them all out. */
+ pop_all_targets (1);
/* Save the history information if it is appropriate to do so. */
if (write_history_p && history_filename)