From: Kevin Buettner Date: Wed, 9 Apr 2003 22:44:24 +0000 (+0000) Subject: * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=366cfc9e2bad99674c8aed9e3b8118df7f25ee60;p=binutils-gdb.git * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the register number for R0 is 0. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 99136915284..d65075986bb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-04-09 Kevin Buettner + + * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the + register number for R0 is 0. + 2003-04-09 J. Brobecker * frame.h (struct gdbarch): Add opaque structure definition diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 8cba11c19e7..4e7d374e56e 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1646,7 +1646,7 @@ frame_get_saved_regs (struct frame_info *fi, struct rs6000_framedata *fdatap) CORE_ADDR gpr_addr = frame_addr + fdatap->gpr_offset; for (i = fdatap->saved_gpr; i < 32; i++) { - get_frame_saved_regs (fi)[i] = gpr_addr; + get_frame_saved_regs (fi)[tdep->ppc_gp0_regnum + i] = gpr_addr; gpr_addr += wordsize; } }