diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-08 01:53:38 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-08 01:53:38 +0000 |
commit | 1e2330ba1fbf486c2851272e2aa09dd57ad367e6 (patch) | |
tree | 9a92bb6aff20e7c56c6efce933de70fd249841e1 /gdb/i386-tdep.c | |
parent | a3982d4858ac407c7e879a57762bc4130d54d4b8 (diff) | |
download | gdb-1e2330ba1fbf486c2851272e2aa09dd57ad367e6.zip gdb-1e2330ba1fbf486c2851272e2aa09dd57ad367e6.tar.gz gdb-1e2330ba1fbf486c2851272e2aa09dd57ad367e6.tar.bz2 |
2003-01-07 Andrew Cagney <cagney@redhat.com>
* alpha-tdep.c: Use get_frame_base.
* arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
* h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
* m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
* mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
* sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
* x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
* config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
* config/sparc/tm-sparc.h: Ditto.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index f4a7df0..6252926 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -512,14 +512,14 @@ static CORE_ADDR i386_frame_chain (struct frame_info *frame) { if (pc_in_dummy_frame (get_frame_pc (frame))) - return frame->frame; + return get_frame_base (frame); if (get_frame_type (frame) == SIGTRAMP_FRAME || i386_frameless_signal_p (frame)) - return frame->frame; + return get_frame_base (frame); if (! inside_entry_file (get_frame_pc (frame))) - return read_memory_unsigned_integer (frame->frame, 4); + return read_memory_unsigned_integer (get_frame_base (frame), 4); return 0; } @@ -585,7 +585,7 @@ i386_frame_saved_pc (struct frame_info *frame) return read_memory_unsigned_integer (sp, 4); } - return read_memory_unsigned_integer (frame->frame + 4, 4); + return read_memory_unsigned_integer (get_frame_base (frame) + 4, 4); } /* Immediately after a function call, return the saved pc. */ @@ -719,7 +719,7 @@ i386_frame_init_saved_regs (struct frame_info *fip) if (locals >= 0) { - addr = fip->frame - 4 - locals; + addr = get_frame_base (fip) - 4 - locals; for (i = 0; i < 8; i++) { op = codestream_get (); @@ -735,8 +735,8 @@ i386_frame_init_saved_regs (struct frame_info *fip) } } - get_frame_saved_regs (fip)[PC_REGNUM] = fip->frame + 4; - get_frame_saved_regs (fip)[FP_REGNUM] = fip->frame; + get_frame_saved_regs (fip)[PC_REGNUM] = get_frame_base (fip) + 4; + get_frame_saved_regs (fip)[FP_REGNUM] = get_frame_base (fip); } /* Return PC of first real instruction. */ @@ -1371,7 +1371,7 @@ i386_svr4_sigcontext_addr (struct frame_info *frame) gdb_assert (sigcontext_offset != -1); if (frame->next) - return frame->next->frame + sigcontext_offset; + return get_frame_base (frame->next) + sigcontext_offset; return read_register (SP_REGNUM) + sigcontext_offset; } |