aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h
index e319271..78610bf 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -39,6 +39,7 @@ struct traceframe_info;
struct expression;
struct dcache_struct;
struct inferior;
+struct target_stack;
#include "infrun.h" /* For enum exec_direction_kind. */
#include "breakpoint.h" /* For enum bptype. */
@@ -1256,6 +1257,28 @@ struct target_ops
#define OPS_MAGIC 3840
+/* Acquire a reference to the target stack. */
+
+extern struct target_stack *target_stack_incref (void);
+
+/* Release a reference to the target stack. */
+
+extern void target_stack_decref (struct target_stack *);
+
+/* Set target_stack and current_target from TSTACK. */
+
+extern void target_stack_set_current (struct target_stack *tstack);
+
+/* Create a new "empty" target stack and return it. The current
+ target stack is not changed. The new stack is initialized with a
+ single reference count, which is owned by the caller. */
+
+extern struct target_stack *new_target_stack (void);
+
+/* Return the numeric identifier of the current target stack. */
+
+extern int target_stack_id (void);
+
/* The ops structure for our "current" target process. This should
never be NULL. If there is no target, it points to the dummy_target. */