aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-08-18 23:12:40 +0000
committerPedro Alves <palves@redhat.com>2008-08-18 23:12:40 +0000
commit87ab71f0a047c034c71d26d7c4ff4fa2b35b22cd (patch)
tree4c3483ad72a8489f300fe5037298600edca5ee1e /gdb/target.h
parent5231c1fd732d8cdb7ed92dd3e275ab4698a8052d (diff)
downloadgdb-87ab71f0a047c034c71d26d7c4ff4fa2b35b22cd.zip
gdb-87ab71f0a047c034c71d26d7c4ff4fa2b35b22cd.tar.gz
gdb-87ab71f0a047c034c71d26d7c4ff4fa2b35b22cd.tar.bz2
* corelow.c (core_open): Assume there was no upper layer left
behind from a previous inferior. * target.c (pop_all_targets): Rename to ... (pop_all_targets_above): ... this. Add a target stratum parameter. Use it instead of hardcoding the dummy_stratum. (pop_all_targets): New, defer to pop_all_targets_above. (target_preopen): Use pop_all_targets_above. * target.h (pop_all_targets_above): Declare.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h
index e92176f..ded91a2 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1179,6 +1179,10 @@ extern void pop_target (void);
while). */
extern void pop_all_targets (int quitting);
+/* Like pop_all_targets, but pops only targets whose stratum is
+ strictly above ABOVE_STRATUM. */
+extern void pop_all_targets_above (enum strata above_stratum, int quitting);
+
extern CORE_ADDR target_translate_tls_address (struct objfile *objfile,
CORE_ADDR offset);