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 | ee29794c763b3bbc4e3cc86a7d4e1de12a81c801 (patch) | |
tree | c66f7490740f1d088668e1131104dc665539edd0 /gdb/ppc-linux-tdep.c | |
parent | 9a711475ecd6cbaa07e7c2d247b36e366d0a2b6a (diff) | |
download | gdb-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-tdep.c')
-rw-r--r-- | gdb/ppc-linux-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index a6e75644028..a7e58bcb5d7 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -860,7 +860,7 @@ ppc_linux_supply_gregset (struct regcache *regcache, struct gdbarch_tdep *regcache_tdep = gdbarch_tdep (regcache_arch); const bfd_byte *buf = gregs; - for (regi = 0; regi < 32; regi++) + for (regi = 0; regi < ppc_num_gprs; regi++) right_supply_register (regcache, wordsize, regcache_tdep->ppc_gp0_regnum + regi, buf + wordsize * regi); @@ -934,7 +934,7 @@ ppc_linux_sigtramp_cache (struct frame_info *next_frame, void **this_cache) fpregs = gpregs + 48 * tdep->wordsize; /* General purpose. */ - for (i = 0; i < 32; i++) + for (i = 0; i < ppc_num_gprs; i++) { int regnum = i + tdep->ppc_gp0_regnum; cache->saved_regs[regnum].addr = gpregs + i * tdep->wordsize; |