From f65f91b5093f6770492ebef8b75ccbe4869d8dad Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Wed, 2 Jun 2004 03:06:23 +0000 Subject: * ppc-tdep.h: Delete unused 'regoff' member. * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it. --- gdb/ChangeLog | 5 +++++ gdb/ppc-tdep.h | 1 - gdb/rs6000-tdep.c | 8 -------- 3 files changed, 5 insertions(+), 9 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 785dd9b..8b91f0d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-06-01 Jim Blandy + + * ppc-tdep.h: Delete unused 'regoff' member. + * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it. + 2004-06-01 Michael Chastain Fix PR symtab/1661. diff --git a/gdb/ppc-tdep.h b/gdb/ppc-tdep.h index 68919b4..ec2e7ae 100644 --- a/gdb/ppc-tdep.h +++ b/gdb/ppc-tdep.h @@ -142,7 +142,6 @@ extern void ppc_collect_fpregset (const struct regset *regset, struct gdbarch_tdep { int wordsize; /* size in bytes of fixed-point word */ - int *regoff; /* byte offsets in register arrays */ const struct reg *regs; /* from current variant */ int ppc_gp0_regnum; /* GPR register 0 */ int ppc_toc_regnum; /* TOC register */ diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 090c9dd..47b0a64 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -2896,14 +2896,6 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) else tdep->lr_frame_offset = 8; - /* Calculate byte offsets in raw register array. */ - tdep->regoff = xmalloc (v->num_tot_regs * sizeof (int)); - for (i = off = 0; i < v->num_tot_regs; i++) - { - tdep->regoff[i] = off; - off += regsize (v->regs + i, wordsize); - } - if (v->arch == bfd_arch_powerpc) switch (v->mach) { -- cgit v1.1