diff options
author | Jim Blandy <jimb@codesourcery.com> | 2004-05-04 17:43:52 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2004-05-04 17:43:52 +0000 |
commit | ba7c80e5c52815e0ab1c604ce0df118698290f5b (patch) | |
tree | 249ef385a8deb38dc1163c0016c657c43905f35e /gdb/aix-thread.c | |
parent | 110c4dd35c549f19c001db024c174af61d20cf59 (diff) | |
download | gdb-ba7c80e5c52815e0ab1c604ce0df118698290f5b.tar.gz |
* config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
* ppc-tdep.h (ppc_num_fprs): New enum constant.
* aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
FPLAST_REGNUM.
* ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
Same.
* ppc-linux-nat.c (ppc_register_u_addr): Same.
* rs6000-nat.c (regmap, fetch_inferior_registers)
(store_inferior_registers): Same.
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r-- | gdb/aix-thread.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index 0ce285a6986..89a07555998 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -1175,7 +1175,9 @@ fetch_regs_kernel_thread (int regno, pthdb_tid_t tid) /* Floating-point registers. */ - if (regno == -1 || (regno >= FP0_REGNUM && regno <= FPLAST_REGNUM)) + if (regno == -1 + || (regno >= FP0_REGNUM + && regno < FP0_REGNUM + ppc_num_fprs)) { if (!ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL)) memset (fprs, 0, sizeof (fprs)); @@ -1262,7 +1264,7 @@ fill_fprs (double *vals) { int regno; - for (regno = FP0_REGNUM; regno <= FPLAST_REGNUM; regno++) + for (regno = FP0_REGNUM; regno < FP0_REGNUM + ppc_num_fprs; regno++) if (register_cached (regno)) regcache_collect (regno, vals + regno); } @@ -1466,7 +1468,9 @@ store_regs_kernel_thread (int regno, pthdb_tid_t tid) /* Floating-point registers. */ - if (regno == -1 || (regno >= FP0_REGNUM && regno <= FPLAST_REGNUM)) + if (regno == -1 + || (regno >= FP0_REGNUM + && regno < FP0_REGNUM + ppc_num_fprs)) { /* Pre-fetch: some regs may not be in the cache. */ ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL); |