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/ppc-linux-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/ppc-linux-nat.c')
-rw-r--r-- | gdb/ppc-linux-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index 72912f2..efd6865 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -590,7 +590,7 @@ fill_gregset (gdb_gregset_t *gregsetp, int regno) /* Start with zeros. */ memset (regp, 0, elf_ngreg * sizeof (*regp)); - for (regi = 0; regi < 32; regi++) + for (regi = 0; regi < ppc_num_gprs; regi++) { if ((regno == -1) || regno == tdep->ppc_gp0_regnum + regi) right_fill_reg (tdep->ppc_gp0_regnum + regi, (regp + PT_R0 + regi)); |