diff options
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r-- | gdb/rs6000-nat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 5fbf334..8e24bed 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -587,7 +587,8 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, if (ARCH64 ()) { for (regi = 0; regi < 32; regi++) - supply_register (regi, (char *) ®s->r64.gpr[regi]); + supply_register (tdep->ppc_gp0_regnum + regi, + (char *) ®s->r64.gpr[regi]); if (tdep->ppc_fp0_regnum >= 0) for (regi = 0; regi < 32; regi++) @@ -606,7 +607,8 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, else { for (regi = 0; regi < 32; regi++) - supply_register (regi, (char *) ®s->r32.gpr[regi]); + supply_register (tdep->ppc_gp0_regnum + regi, + (char *) ®s->r32.gpr[regi]); if (tdep->ppc_fp0_regnum >= 0) for (regi = 0; regi < 32; regi++) |