diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-03 23:53:48 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-03 23:53:48 +0000 |
commit | b2fb46766e90d9753db4f8db3138f69be34f8e3b (patch) | |
tree | f74501ef789c4c6995604eb66fc4de8e90620870 /gdb/i386-tdep.c | |
parent | 8dcde88743b22fab1f0d9c16b39ef4a892d88c36 (diff) | |
download | gdb-b2fb46766e90d9753db4f8db3138f69be34f8e3b.zip gdb-b2fb46766e90d9753db4f8db3138f69be34f8e3b.tar.gz gdb-b2fb46766e90d9753db4f8db3138f69be34f8e3b.tar.bz2 |
2003-01-03 Andrew Cagney <ac131313@redhat.com>
* alpha-tdep.c: Use get_frame_saved_regs.
* 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, mn10300-tdep.c: Ditto.
* ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
* vax-tdep.c, xstormy16-tdep.c: Ditto.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index e7b166f..2654396 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -707,7 +707,7 @@ i386_frame_init_saved_regs (struct frame_info *fip) CORE_ADDR pc; int i; - if (fip->saved_regs) + if (get_frame_saved_regs (fip)) return; frame_saved_regs_zalloc (fip); @@ -726,16 +726,16 @@ i386_frame_init_saved_regs (struct frame_info *fip) break; #ifdef I386_REGNO_TO_SYMMETRY /* Dynix uses different internal numbering. Ick. */ - fip->saved_regs[I386_REGNO_TO_SYMMETRY (op - 0x50)] = addr; + get_frame_saved_regs (fip)[I386_REGNO_TO_SYMMETRY (op - 0x50)] = addr; #else - fip->saved_regs[op - 0x50] = addr; + get_frame_saved_regs (fip)[op - 0x50] = addr; #endif addr -= 4; } } - fip->saved_regs[PC_REGNUM] = fip->frame + 4; - fip->saved_regs[FP_REGNUM] = fip->frame; + get_frame_saved_regs (fip)[PC_REGNUM] = fip->frame + 4; + get_frame_saved_regs (fip)[FP_REGNUM] = fip->frame; } /* Return PC of first real instruction. */ @@ -867,7 +867,7 @@ i386_do_pop_frame (struct frame_info *frame) for (regnum = 0; regnum < NUM_REGS; regnum++) { CORE_ADDR addr; - addr = frame->saved_regs[regnum]; + addr = get_frame_saved_regs (frame)[regnum]; if (addr) { read_memory (addr, regbuf, REGISTER_RAW_SIZE (regnum)); |