diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-24 19:48:13 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-24 19:48:13 +0000 |
commit | c193f6ac9cadbfcaf4bae1a46d01b6c2a4f66bb4 (patch) | |
tree | 94e43a5b7c11851202f9ea9b4f725dd041f7b7a8 /gdb/sh-tdep.c | |
parent | e5d2af146b35918deacdec7270a9e6890410e1a5 (diff) | |
download | gdb-c193f6ac9cadbfcaf4bae1a46d01b6c2a4f66bb4.zip gdb-c193f6ac9cadbfcaf4bae1a46d01b6c2a4f66bb4.tar.gz gdb-c193f6ac9cadbfcaf4bae1a46d01b6c2a4f66bb4.tar.bz2 |
2002-11-19 Andrew Cagney <ac131313@redhat.com>
* frame.h (FRAME_FP): Delete macro.
(get_frame_base): New function declaration.
* frame.c (get_frame_base): New function.
(get_frame_id): Use ->frame.
(frame_find_by_id): Rewrite to use get_frame_id.
* blockframe.c: Use get_frame_base instead of FRAME_FP.
* cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
* hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
* m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
* mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
* sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
* v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 12e26d3..0013031 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -930,7 +930,7 @@ sh_frame_chain (struct frame_info *frame) if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame)) return frame->frame; /* dummy frame same as caller's frame */ if (frame->pc && !inside_entry_file (frame->pc)) - return read_memory_integer (FRAME_FP (frame) + frame->extra_info->f_offset, 4); + return read_memory_integer (get_frame_base (frame) + frame->extra_info->f_offset, 4); else return 0; } @@ -975,7 +975,7 @@ sh64_frame_chain (struct frame_info *frame) size = 4; else size = REGISTER_RAW_SIZE (translate_insn_rn (FP_REGNUM, media_mode)); - return read_memory_integer (FRAME_FP (frame) + frame->extra_info->f_offset, size); + return read_memory_integer (get_frame_base (frame) + frame->extra_info->f_offset, size); } else return 0; @@ -1912,7 +1912,7 @@ sh_pop_frame (void) generic_pop_dummy_frame (); else { - fp = FRAME_FP (frame); + fp = get_frame_base (frame); FRAME_INIT_SAVED_REGS (frame); /* Copy regs from where they were saved in the frame */ @@ -1942,7 +1942,7 @@ sh64_pop_frame (void) generic_pop_dummy_frame (); else { - fp = FRAME_FP (frame); + fp = get_frame_base (frame); FRAME_INIT_SAVED_REGS (frame); /* Copy regs from where they were saved in the frame */ |