aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
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/target.h
parent311a4e6b7b004617841f2a6c657e76dddd7d2249 (diff)
downloadgdb-aa76d38d1d90e7958dba24494b15ec9798f50229.zip
gdb-aa76d38d1d90e7958dba24494b15ec9798f50229.tar.gz
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/target.h')
-rw-r--r--gdb/target.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h
index e242566..e92176f 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1172,6 +1172,13 @@ extern void target_preopen (int);
extern void pop_target (void);
+/* Does whatever cleanup is required to get rid of all pushed targets.
+ QUITTING is propagated to target_close; it indicates that GDB is
+ exiting and should not get hung on an error (otherwise it is
+ important to perform clean termination, even if it takes a
+ while). */
+extern void pop_all_targets (int quitting);
+
extern CORE_ADDR target_translate_tls_address (struct objfile *objfile,
CORE_ADDR offset);