From b2fb46766e90d9753db4f8db3138f69be34f8e3b Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 3 Jan 2003 23:53:48 +0000 Subject: 2003-01-03 Andrew Cagney * 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. --- gdb/vax-tdep.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gdb/vax-tdep.c') diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c index d3deda6..c467e13 100644 --- a/gdb/vax-tdep.c +++ b/gdb/vax-tdep.c @@ -129,7 +129,7 @@ vax_frame_init_saved_regs (struct frame_info *frame) int regnum, regmask; CORE_ADDR next_addr; - if (frame->saved_regs) + if (get_frame_saved_regs (frame)) return; frame_saved_regs_zalloc (frame); @@ -143,18 +143,18 @@ vax_frame_init_saved_regs (struct frame_info *frame) for (regnum = 0; regnum < VAX_AP_REGNUM; regnum++) { if (regmask & (1 << regnum)) - frame->saved_regs[regnum] = next_addr += 4; + get_frame_saved_regs (frame)[regnum] = next_addr += 4; } - frame->saved_regs[SP_REGNUM] = next_addr + 4; + get_frame_saved_regs (frame)[SP_REGNUM] = next_addr + 4; if (regmask & (1 << FP_REGNUM)) - frame->saved_regs[SP_REGNUM] += + get_frame_saved_regs (frame)[SP_REGNUM] += 4 + (4 * read_memory_integer (next_addr + 4, 4)); - frame->saved_regs[PC_REGNUM] = frame->frame + 16; - frame->saved_regs[FP_REGNUM] = frame->frame + 12; - frame->saved_regs[VAX_AP_REGNUM] = frame->frame + 8; - frame->saved_regs[PS_REGNUM] = frame->frame + 4; + get_frame_saved_regs (frame)[PC_REGNUM] = frame->frame + 16; + get_frame_saved_regs (frame)[FP_REGNUM] = frame->frame + 12; + get_frame_saved_regs (frame)[VAX_AP_REGNUM] = frame->frame + 8; + get_frame_saved_regs (frame)[PS_REGNUM] = frame->frame + 4; } /* Get saved user PC for sigtramp from sigcontext for BSD style sigtramp. */ -- cgit v1.1