summaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-10-17 13:59:27 +0000
committerAndrew Cagney <cagney@redhat.com>2003-10-17 13:59:27 +0000
commit8c9d904f08fe15147a99ca520ca68712fa52e63f (patch)
treece204463fea29d9345ff451f019c854c6f870a7e /gdb/target.h
parentc6d610b70c2561e784d80202c9d610143967df62 (diff)
downloadgdb-8c9d904f08fe15147a99ca520ca68712fa52e63f.tar.gz
2003-10-15 Andrew Cagney <cagney@redhat.com>
* target.c (target_stack): Change to a static target_ops. (update_current_target): Walk the "struct target_ops" stack. (pop_target, do_xfer_memory, target_info): Ditto. (find_target_beneath): Ditto. (push_target): Rewrite to use the "struct target_ops" stack. (unpush_target): Ditto. * target.h (struct target_stack_item): Delete definition. (target_stack): Delete declaration. (struct target_ops): Add field "beneath".
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 5a0d33318a9..205b8ade141 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -188,6 +188,7 @@ struct thread_info; /* fwd decl for parameter list below: */
struct target_ops
{
+ struct target_ops *beneath; /* To the target under this one. */
char *to_shortname; /* Name this target type */
char *to_longname; /* Name for printing */
char *to_doc; /* Documentation. Does not include trailing
@@ -326,18 +327,6 @@ struct target_ops
extern struct target_ops current_target;
-/* An item on the target stack. */
-
-struct target_stack_item
- {
- struct target_stack_item *next;
- struct target_ops *target_ops;
- };
-
-/* The target stack. */
-
-extern struct target_stack_item *target_stack;
-
/* Define easy words for doing these operations on our current target. */
#define target_shortname (current_target.to_shortname)