diff options
author | Jim Blandy <jimb@codesourcery.com> | 2004-05-05 01:46:55 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2004-05-05 01:46:55 +0000 |
commit | 366f009f23b0e5fc1668d1f728b4cda533df5cb5 (patch) | |
tree | 6a4f33eea5a1504c1169b4f9e7d0f7bff0dca852 /gdb/ppc-linux-tdep.c | |
parent | e792b4ce88267ea6d1fc66defae56f8dc8d4c05d (diff) | |
download | gdb-366f009f23b0e5fc1668d1f728b4cda533df5cb5.zip gdb-366f009f23b0e5fc1668d1f728b4cda533df5cb5.tar.gz gdb-366f009f23b0e5fc1668d1f728b4cda533df5cb5.tar.bz2 |
* config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
should no longer be used in code specific to the RS6000 and its
derivatives.
* ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
* rs6000-tdep.c (rs6000_gdbarch_init): Initialize
tdep->ppc_fp0_regnum.
(ppc_supply_fpregset, ppc_collect_fpregset)
(rs6000_push_dummy_call, rs6000_extract_return_value)
(rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
(rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
FP0_REGNUM.
* aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
(fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
Same.
* ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
bdm_ppc_store_registers): Same.
* ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
(store_register, fill_fpregset): Same.
* ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
(ppc_linux_supply_fpregset): Same.
* ppcnbsd-nat.c (getfpregs_supplies): Same.
* ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
Same.
* ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
ppc64_sysv_abi_return_value): Same.
* rs6000-nat.c (regmap, fetch_inferior_registers)
(store_inferior_registers, fetch_core_registers): Same.
Diffstat (limited to 'gdb/ppc-linux-tdep.c')
-rw-r--r-- | gdb/ppc-linux-tdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index d0e82e6..94c67f1 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -946,7 +946,7 @@ ppc_linux_sigtramp_cache (struct frame_info *next_frame, void **this_cache) /* Floating point registers. */ for (i = 0; i < 32; i++) { - int regnum = i + FP0_REGNUM; + int regnum = i + tdep->ppc_fp0_regnum; cache->saved_regs[regnum].addr = fpregs + i * tdep->wordsize; } cache->saved_regs[tdep->ppc_fpscr_regnum].addr = fpregs + 32 * tdep->wordsize; @@ -1019,7 +1019,9 @@ ppc_linux_supply_fpregset (const struct regset *regset, const bfd_byte *buf = fpset; for (regi = 0; regi < 32; regi++) - regcache_raw_supply (regcache, FP0_REGNUM + regi, buf + 8 * regi); + regcache_raw_supply (regcache, + regcache_tdep->ppc_fp0_regnum + regi, + buf + 8 * regi); /* The FPSCR is stored in the low order word of the last doubleword in the fpregset. */ |