2003-10-15 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Fri, 17 Oct 2003 13:59:27 +0000 (13:59 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 17 Oct 2003 13:59:27 +0000 (13:59 +0000)
commit258b763a8c4490f01b482675f90faf04c0e3b902
treeddc8e08b036ae23248138a6be4ac14c6bb2dffef
parentac1764c7482bf7a4470321d4d018f00c1ab32c18
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".
gdb/ChangeLog
gdb/target.c
gdb/target.h