diff options
author | Jim Blandy <jimb@codesourcery.com> | 2004-05-13 19:27:07 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2004-05-13 19:27:07 +0000 |
commit | cdf2c5f516c73172ae0bfe06fed25cb8cb4ea215 (patch) | |
tree | d5b11731441df820446adbb27ced03ebabe26f97 /gdb/ppcnbsd-tdep.c | |
parent | 450bd37bb070a60ffefeb87f7c7de68dd0968396 (diff) | |
download | gdb-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/ppcnbsd-tdep.c')
-rw-r--r-- | gdb/ppcnbsd-tdep.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/ppcnbsd-tdep.c b/gdb/ppcnbsd-tdep.c index 0765292..a00d24a 100644 --- a/gdb/ppcnbsd-tdep.c +++ b/gdb/ppcnbsd-tdep.c @@ -57,8 +57,9 @@ ppcnbsd_supply_reg (char *regs, int regno) for (i = 0; i <= 31; i++) { - if (regno == i || regno == -1) - supply_register (i, regs + REG_FIXREG_OFFSET (i)); + if (regno == tdep->ppc_gp0_regnum + i || regno == -1) + supply_register (tdep->ppc_gp0_regnum + i, + regs + REG_FIXREG_OFFSET (i)); } if (regno == tdep->ppc_lr_regnum || regno == -1) @@ -85,8 +86,9 @@ ppcnbsd_fill_reg (char *regs, int regno) for (i = 0; i <= 31; i++) { - if (regno == i || regno == -1) - regcache_collect (i, regs + REG_FIXREG_OFFSET (i)); + if (regno == tdep->ppc_gp0_regnum + i || regno == -1) + regcache_collect (tdep->ppc_gp0_regnum + i, + regs + REG_FIXREG_OFFSET (i)); } if (regno == tdep->ppc_lr_regnum || regno == -1) |