mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 11:04:18 +08:00
* ppc-tdep.h: Delete unused 'regoff' member.
* rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
This commit is contained in:
parent
f4d82318a1
commit
f65f91b509
@ -1,3 +1,8 @@
|
||||
2004-06-01 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* ppc-tdep.h: Delete unused 'regoff' member.
|
||||
* rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
|
||||
|
||||
2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
|
||||
|
||||
Fix PR symtab/1661.
|
||||
|
@ -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 */
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user