summaryrefslogtreecommitdiff
path: root/gdb/ppc-linux-nat.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-05-13 19:36:05 +0000
committerJim Blandy <jimb@codesourcery.com>2004-05-13 19:36:05 +0000
commitee29794c763b3bbc4e3cc86a7d4e1de12a81c801 (patch)
treec66f7490740f1d088668e1131104dc665539edd0 /gdb/ppc-linux-nat.c
parent9a711475ecd6cbaa07e7c2d247b36e366d0a2b6a (diff)
downloadgdb-ee29794c763b3bbc4e3cc86a7d4e1de12a81c801.tar.gz
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index 72912f2e4bb..efd686544d1 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));