aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-tdep.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-05-04 17:58:31 +0000
committerJim Blandy <jimb@codesourcery.com>2004-05-04 17:58:31 +0000
commit8bf659e8f6f3cd9041872b77334812bc176bd2e7 (patch)
tree1f03970a815fee6d9fb5fcec1f6fb1c0ecc2ab31 /gdb/ppc-tdep.h
parentb967e06fbcdd33cc9f61e62dad38dc6d879c1405 (diff)
downloadgdb-8bf659e8f6f3cd9041872b77334812bc176bd2e7.zip
gdb-8bf659e8f6f3cd9041872b77334812bc176bd2e7.tar.gz
gdb-8bf659e8f6f3cd9041872b77334812bc176bd2e7.tar.bz2
* config/ppc-tdep.h (struct gdbarch_tdep): Delete
'ppc_gplast_regnum' member. (ppc_num_gprs): New enum constant. * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum and ppc_num_gprs instead of tdep->ppc_gplast_regnum. * rs6000-nat.c (regmap, fetch_inferior_registers, store_inferior_registers): Same. * rs6000-tdep.c (e500_pseudo_register_read) (e500_pseudo_register_write): Same. (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
Diffstat (limited to 'gdb/ppc-tdep.h')
-rw-r--r--gdb/ppc-tdep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ppc-tdep.h b/gdb/ppc-tdep.h
index c8b4100..4830c5e 100644
--- a/gdb/ppc-tdep.h
+++ b/gdb/ppc-tdep.h
@@ -144,7 +144,6 @@ struct gdbarch_tdep
int *regoff; /* byte offsets in register arrays */
const struct reg *regs; /* from current variant */
int ppc_gp0_regnum; /* GPR register 0 */
- int ppc_gplast_regnum; /* GPR register 31 */
int ppc_toc_regnum; /* TOC register */
int ppc_ps_regnum; /* Processor (or machine) status (%msr) */
int ppc_cr_regnum; /* Condition register */
@@ -166,6 +165,7 @@ struct gdbarch_tdep
/* Constants for register set sizes. */
enum
{
+ ppc_num_gprs = 32, /* 32 general-purpose registers */
ppc_num_fprs = 32 /* 32 floating-point registers */
};