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/xstormy16-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/xstormy16-tdep.c')
-rw-r--r-- | gdb/xstormy16-tdep.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c index 580c0fe..4cf9794 100644 --- a/gdb/xstormy16-tdep.c +++ b/gdb/xstormy16-tdep.c @@ -341,15 +341,15 @@ xstormy16_pop_frame (void) { /* Restore the saved regs. */ for (i = 0; i < NUM_REGS; i++) - if (fi->saved_regs[i]) + if (get_frame_saved_regs (fi)[i]) { if (i == SP_REGNUM) - write_register (i, fi->saved_regs[i]); + write_register (i, get_frame_saved_regs (fi)[i]); else if (i == E_PC_REGNUM) - write_register (i, read_memory_integer (fi->saved_regs[i], + write_register (i, read_memory_integer (get_frame_saved_regs (fi)[i], xstormy16_pc_size)); else - write_register (i, read_memory_integer (fi->saved_regs[i], + write_register (i, read_memory_integer (get_frame_saved_regs (fi)[i], xstormy16_reg_size)); } /* Restore the PC */ @@ -490,7 +490,7 @@ xstormy16_scan_prologue (CORE_ADDR start_addr, CORE_ADDR end_addr, if (fi) { regnum = inst & 0x000f; - fi->saved_regs[regnum] = fi->extra_info->framesize; + get_frame_saved_regs (fi)[regnum] = fi->extra_info->framesize; fi->extra_info->framesize += xstormy16_reg_size; } } @@ -546,7 +546,7 @@ xstormy16_scan_prologue (CORE_ADDR start_addr, CORE_ADDR end_addr, if (offset & 0x0800) offset -= 0x1000; - fi->saved_regs[regnum] = fi->extra_info->framesize + offset; + get_frame_saved_regs (fi)[regnum] = fi->extra_info->framesize + offset; } next_addr += xstormy16_inst_size; } @@ -593,12 +593,12 @@ xstormy16_scan_prologue (CORE_ADDR start_addr, CORE_ADDR end_addr, previous value would have been pushed). */ if (fi->extra_info->frameless_p) { - fi->saved_regs[E_SP_REGNUM] = sp - fi->extra_info->framesize; + get_frame_saved_regs (fi)[E_SP_REGNUM] = sp - fi->extra_info->framesize; fi->frame = sp; } else { - fi->saved_regs[E_SP_REGNUM] = fp - fi->extra_info->framesize; + get_frame_saved_regs (fi)[E_SP_REGNUM] = fp - fi->extra_info->framesize; fi->frame = fp; } @@ -607,11 +607,11 @@ xstormy16_scan_prologue (CORE_ADDR start_addr, CORE_ADDR end_addr, sp, fp and framesize. We know the beginning of the frame so we can translate the register offsets to real addresses. */ for (regnum = 0; regnum < E_SP_REGNUM; ++regnum) - if (fi->saved_regs[regnum]) - fi->saved_regs[regnum] += fi->saved_regs[E_SP_REGNUM]; + if (get_frame_saved_regs (fi)[regnum]) + get_frame_saved_regs (fi)[regnum] += get_frame_saved_regs (fi)[E_SP_REGNUM]; /* Save address of PC on stack. */ - fi->saved_regs[E_PC_REGNUM] = fi->saved_regs[E_SP_REGNUM]; + get_frame_saved_regs (fi)[E_PC_REGNUM] = get_frame_saved_regs (fi)[E_SP_REGNUM]; } return next_addr; @@ -732,7 +732,7 @@ xstormy16_frame_init_saved_regs (struct frame_info *fi) { CORE_ADDR func_addr, func_end; - if (!fi->saved_regs) + if (!get_frame_saved_regs (fi)) { frame_saved_regs_zalloc (fi); @@ -763,7 +763,7 @@ xstormy16_frame_saved_pc (struct frame_info *fi) } else { - saved_pc = read_memory_unsigned_integer (fi->saved_regs[E_PC_REGNUM], + saved_pc = read_memory_unsigned_integer (get_frame_saved_regs (fi)[E_PC_REGNUM], xstormy16_pc_size); } |