aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-05-13 19:27:07 +0000
committerJim Blandy <jimb@codesourcery.com>2004-05-13 19:27:07 +0000
commitcdf2c5f516c73172ae0bfe06fed25cb8cb4ea215 (patch)
treed5b11731441df820446adbb27ced03ebabe26f97 /gdb/rs6000-nat.c
parent450bd37bb070a60ffefeb87f7c7de68dd0968396 (diff)
downloadgdb-cdf2c5f516c73172ae0bfe06fed25cb8cb4ea215.zip
gdb-cdf2c5f516c73172ae0bfe06fed25cb8cb4ea215.tar.gz
gdb-cdf2c5f516c73172ae0bfe06fed25cb8cb4ea215.tar.bz2
* aix-thread.c (supply_gprs64, fetch_regs_user_thread)
(store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead of assuming that the gprs are numbered starting with zero. * ppc-linux-nat.c (fill_gregset): Same. * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same. * ppcnbsd-nat.c (getregs_supplies): Same. * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same. * rs6000-nat.c (fetch_core_registers): Same. * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c6
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 *) &regs->r64.gpr[regi]);
+ supply_register (tdep->ppc_gp0_regnum + regi,
+ (char *) &regs->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 *) &regs->r32.gpr[regi]);
+ supply_register (tdep->ppc_gp0_regnum + regi,
+ (char *) &regs->r32.gpr[regi]);
if (tdep->ppc_fp0_regnum >= 0)
for (regi = 0; regi < 32; regi++)