diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-10-17 13:59:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-10-17 13:59:27 +0000 |
commit | 258b763a8c4490f01b482675f90faf04c0e3b902 (patch) | |
tree | ddc8e08b036ae23248138a6be4ac14c6bb2dffef /gdb/target.h | |
parent | ac1764c7482bf7a4470321d4d018f00c1ab32c18 (diff) | |
download | gdb-258b763a8c4490f01b482675f90faf04c0e3b902.zip gdb-258b763a8c4490f01b482675f90faf04c0e3b902.tar.gz gdb-258b763a8c4490f01b482675f90faf04c0e3b902.tar.bz2 |
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.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/target.h b/gdb/target.h index 5a0d333..205b8ad 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) |