diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-09-28 22:32:20 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-09-28 22:32:20 +0000 |
commit | 7f5f525dc281b83409f2251c6caa0cc19e6fedfe (patch) | |
tree | 90d30c1bb56fa3495c3bf17fface2158d78b4e50 /gdb/frame.h | |
parent | 9ff63c35fb8980e34b12712ec588cc328c03c739 (diff) | |
download | gdb-7f5f525dc281b83409f2251c6caa0cc19e6fedfe.zip gdb-7f5f525dc281b83409f2251c6caa0cc19e6fedfe.tar.gz gdb-7f5f525dc281b83409f2251c6caa0cc19e6fedfe.tar.bz2 |
2003-09-28 Andrew Cagney <cagney@redhat.com>
* frame.c (frame_read_unsigned_register): Delete function.
* frame.h (frame_read_unsigned_register): Delete declaration.
* sparc-tdep.c (sparc_init_extra_frame_info): Use
get_frame_register_unsigned.
(sparc_frame_saved_pc, sparc_pop_frame): Ditto.
* m68hc11-tdep.c (m68hc11_print_register): Ditto.
* d10v-tdep.c (d10v_print_registers_info): Ditto.
* frame.h (frame_read_register): Delete declaration.
* frame.c (frame_read_register): Delete function.
* arch-utils.c (legacy_register_to_value): Use get_frame_register.
* sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
* rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
* mips-tdep.c (mips_register_to_value): Ditto.
* hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
* d10v-tdep.c (d10v_print_registers_info): Ditto.
* frame.c (frame_read_signed_register): Delete function.
(frame_read_unsigned_register): Update comments.
* frame.h (frame_read_signed_register): Delete declaration.
* h8300-tdep.c (h8300_print_register): Use
get_frame_register_signed.
* m68hc11-tdep.c (m68hc11_print_register): Ditto.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r-- | gdb/frame.h | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index 579dbdb..72f1496 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -398,22 +398,6 @@ extern void frame_register (struct frame_info *frame, int regnum, CORE_ADDR *addrp, int *realnump, void *valuep); -/* More convenient interface to frame_register(). */ -/* NOTE: cagney/2002-09-13: Return void as one day these functions may - be changed to return an indication that the read succeeded. */ - -/* Use get_frame_register. */ -extern void frame_read_register (struct frame_info *frame, int regnum, - void *buf); - -/* Use get_frame_register_signed. */ -extern void frame_read_signed_register (struct frame_info *frame, - int regnum, LONGEST *val); - -/* Use get_frame_register_unsigned. */ -extern void frame_read_unsigned_register (struct frame_info *frame, - int regnum, ULONGEST *val); - /* The reverse. Store a register value relative to the specified frame. Note: this call makes the frame's state undefined. The register and frame caches must be flushed. */ @@ -591,11 +575,11 @@ extern void deprecated_generic_get_saved_register (char *, int *, CORE_ADDR *, extern void generic_save_call_dummy_addr (CORE_ADDR lo, CORE_ADDR hi); /* FIXME: cagney/2003-02-02: Should be deprecated or replaced with a - function called frame_read_register_p(). This slightly weird (and - older) variant of frame_read_register() returns zero (indicating - the register is unavailable) if either: the register isn't cached; - or the register has been optimized out. Problem is, neither check - is exactly correct. A register can't be optimized out (it may not + function called get_frame_register_p(). This slightly weird (and + older) variant of get_frame_register() returns zero (indicating the + register is unavailable) if either: the register isn't cached; or + the register has been optimized out. Problem is, neither check is + exactly correct. A register can't be optimized out (it may not have been saved as part of a function call); The fact that a register isn't in the register cache doesn't mean that the register isn't available (it could have been fetched from memory). */ |