summaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-05-04 17:43:52 +0000
committerJim Blandy <jimb@codesourcery.com>2004-05-04 17:43:52 +0000
commitba7c80e5c52815e0ab1c604ce0df118698290f5b (patch)
tree249ef385a8deb38dc1163c0016c657c43905f35e /gdb/rs6000-nat.c
parent110c4dd35c549f19c001db024c174af61d20cf59 (diff)
downloadgdb-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/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 02bb2e2d414..3d66e98294b 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -158,7 +158,7 @@ regmap (int regno, int *isfloat)
*isfloat = 0;
if (tdep->ppc_gp0_regnum <= regno && regno <= tdep->ppc_gplast_regnum)
return regno;
- else if (FP0_REGNUM <= regno && regno <= FPLAST_REGNUM)
+ else if (FP0_REGNUM <= regno && regno < FP0_REGNUM + ppc_num_fprs)
{
*isfloat = 1;
return regno - FP0_REGNUM + FPR0;
@@ -357,7 +357,7 @@ fetch_inferior_registers (int regno)
}
/* Read general purpose floating point registers. */
- for (regno = FP0_REGNUM; regno <= FPLAST_REGNUM; regno++)
+ for (regno = FP0_REGNUM; regno < FP0_REGNUM + ppc_num_fprs; regno++)
fetch_register (regno);
/* Read special registers. */
@@ -396,7 +396,7 @@ store_inferior_registers (int regno)
}
/* Write floating point registers. */
- for (regno = FP0_REGNUM; regno <= FPLAST_REGNUM; regno++)
+ for (regno = FP0_REGNUM; regno < FP0_REGNUM + ppc_num_fprs; regno ++)
store_register (regno);
/* Write special registers. */