diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-09-25 20:44:02 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-09-25 20:44:02 +0000 |
commit | 4572f5481f7faf42ea49da417b1c426e5fccb344 (patch) | |
tree | 3d2fbf2cc97f79509283fc63f563f1cea7d14f6c /gdb/ns32k-tdep.c | |
parent | c143fa43700ccb8839d00d46675366e7fba69500 (diff) | |
download | gdb-4572f5481f7faf42ea49da417b1c426e5fccb344.tar.gz |
2003-09-25 Andrew Cagney <cagney@redhat.com>
* frame.h (deprecated_frame_saved_regs): Rename
get_frame_saved_regs.
* cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
* mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
* ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
* s390-tdep.c, sh64-tdep.c, stack.c: Update.
* v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
Diffstat (limited to 'gdb/ns32k-tdep.c')
-rw-r--r-- | gdb/ns32k-tdep.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/ns32k-tdep.c b/gdb/ns32k-tdep.c index 2485276c578..7b4a01c8423 100644 --- a/gdb/ns32k-tdep.c +++ b/gdb/ns32k-tdep.c @@ -370,7 +370,7 @@ ns32k_frame_init_saved_regs (struct frame_info *frame) int localcount; CORE_ADDR enter_addr, next_addr; - if (get_frame_saved_regs (frame)) + if (deprecated_get_frame_saved_regs (frame)) return; frame_saved_regs_zalloc (frame); @@ -385,18 +385,18 @@ ns32k_frame_init_saved_regs (struct frame_info *frame) for (regnum = 0; regnum < 8; regnum++) { if (regmask & (1 << regnum)) - get_frame_saved_regs (frame)[regnum] = next_addr -= 4; + deprecated_get_frame_saved_regs (frame)[regnum] = next_addr -= 4; } - get_frame_saved_regs (frame)[SP_REGNUM] = get_frame_base (frame) + 4; - get_frame_saved_regs (frame)[PC_REGNUM] = get_frame_base (frame) + 4; - get_frame_saved_regs (frame)[DEPRECATED_FP_REGNUM] = read_memory_integer (get_frame_base (frame), 4); + deprecated_get_frame_saved_regs (frame)[SP_REGNUM] = get_frame_base (frame) + 4; + deprecated_get_frame_saved_regs (frame)[PC_REGNUM] = get_frame_base (frame) + 4; + deprecated_get_frame_saved_regs (frame)[DEPRECATED_FP_REGNUM] = read_memory_integer (get_frame_base (frame), 4); } else if (enter_addr == 1) { CORE_ADDR sp = read_register (SP_REGNUM); - get_frame_saved_regs (frame)[PC_REGNUM] = sp; - get_frame_saved_regs (frame)[SP_REGNUM] = sp + 4; + deprecated_get_frame_saved_regs (frame)[PC_REGNUM] = sp; + deprecated_get_frame_saved_regs (frame)[SP_REGNUM] = sp + 4; } } @@ -427,9 +427,9 @@ ns32k_pop_frame (void) DEPRECATED_FRAME_INIT_SAVED_REGS (frame); for (regnum = 0; regnum < 8; regnum++) - if (get_frame_saved_regs (frame)[regnum]) + if (deprecated_get_frame_saved_regs (frame)[regnum]) write_register (regnum, - read_memory_integer (get_frame_saved_regs (frame)[regnum], 4)); + read_memory_integer (deprecated_get_frame_saved_regs (frame)[regnum], 4)); write_register (DEPRECATED_FP_REGNUM, read_memory_integer (fp, 4)); write_register (PC_REGNUM, read_memory_integer (fp + 4, 4)); |