aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2003-04-09 22:44:24 +0000
committerKevin Buettner <kevinb@redhat.com>2003-04-09 22:44:24 +0000
commit366cfc9e2bad99674c8aed9e3b8118df7f25ee60 (patch)
tree192965b6453bcd4182a891ff83b653cdab996de4 /gdb/rs6000-tdep.c
parentcd983b5cd0393cfd00386b10c68fb18e59bdd61d (diff)
downloadgdb-366cfc9e2bad99674c8aed9e3b8118df7f25ee60.zip
gdb-366cfc9e2bad99674c8aed9e3b8118df7f25ee60.tar.gz
gdb-366cfc9e2bad99674c8aed9e3b8118df7f25ee60.tar.bz2
* rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
register number for R0 is 0.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 8cba11c..4e7d374 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;
}
}