diff options
author | Jim Blandy <jimb@codesourcery.com> | 2004-05-13 19:36:05 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2004-05-13 19:36:05 +0000 |
commit | 063715bf637d9552de6b4d991823cc9854a76d0e (patch) | |
tree | 6414dacb49b7343612e99d02fd0ec42c7abbe29f /gdb/rs6000-nat.c | |
parent | 0b30808c916cc4ff01cca027c672d9a4fcca0e1c (diff) | |
download | gdb-063715bf637d9552de6b4d991823cc9854a76d0e.zip gdb-063715bf637d9552de6b4d991823cc9854a76d0e.tar.gz gdb-063715bf637d9552de6b4d991823cc9854a76d0e.tar.bz2 |
* aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
(fetch_regs_user_thread, fetch_regs_kernel_thread)
(store_regs_user_thread, store_regs_kernel_thread): Use
ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
* ppc-linux-nat.c (fill_gregset): Same.
* ppc-linux-tdep.c (ppc_linux_supply_gregset)
(ppc_linux_sigtramp_cache): Same.
* ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
(ppcnbsd_sigtramp_cache_init): Same.
* rs6000-nat.c (fetch_core_registers): Same.
* rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
(rs6000_frame_cache): Same.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r-- | gdb/rs6000-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 8e24bed..bf08b94 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -586,12 +586,12 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, if (ARCH64 ()) { - for (regi = 0; regi < 32; regi++) + for (regi = 0; regi < ppc_num_gprs; 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++) + for (regi = 0; regi < ppc_num_fprs; regi++) supply_register (tdep->ppc_fp0_regnum + regi, (char *) ®s->r64.fpr[regi]); @@ -606,12 +606,12 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, } else { - for (regi = 0; regi < 32; regi++) + for (regi = 0; regi < ppc_num_gprs; 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++) + for (regi = 0; regi < ppc_num_fprs; regi++) supply_register (tdep->ppc_fp0_regnum + regi, (char *) ®s->r32.fpr[regi]); |