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 | b967e06fbcdd33cc9f61e62dad38dc6d879c1405 (patch) | |
tree | 81453d67630dd685243fa4c2584fa478e8e1cc1f /gdb/rs6000-nat.c | |
parent | edf61169009a4add7b95e1febbfc99bd10f03096 (diff) | |
download | gdb-b967e06fbcdd33cc9f61e62dad38dc6d879c1405.zip gdb-b967e06fbcdd33cc9f61e62dad38dc6d879c1405.tar.gz gdb-b967e06fbcdd33cc9f61e62dad38dc6d879c1405.tar.bz2 |
* 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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 02bb2e2..3d66e982 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. */ |