From 4246e332ce0f989e7c0dd9288e3fd4058ba36353 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 15 Nov 2003 22:09:07 +0000 Subject: 2003-11-15 Andrew Cagney Replace MIPS_REGSIZE with mips_regsize. * mips-tdep.c (mips_regsize): New function. * mips-tdep.h (mips_regsize): Declare. * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update. (SIZEOF_STRUCT_REG): Update. * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update. (mipsnbsd_fill_reg): Update. (mipsnbsd_supply_fpreg): Update. (mipsnbsd_fill_fpreg): Update. (NBSD_MIPS_JB_ELEMENT_SIZE): Update. * mips-tdep.c (mips_register_raw_size): Update. (mips_register_type): Update. (SIGFRAME_BASE): Update. (SIGFRAME_PC_OFF): Update. (SIGFRAME_REGSAVE_OFF): Update. (SIGFRAME_FPREGSAVE_OFF): Update. (SIGFRAME_REG_SIZE): Update. (mips32_heuristic_proc_desc): Update. (print_gp_register_row): Update. (mips_dump_tdep): Do not print MIPS_REGSIZE. * irix5-nat.c (supply_gregset): Update. (fetch_core_registers): Update. * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro. * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update. * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro. (MIPS_REGISTER_BYTE): Update. * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update. --- gdb/irix5-nat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/irix5-nat.c') diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index 224d376..de27ef1 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -55,7 +55,7 @@ supply_gregset (gregset_t *gregsetp) { int regi; greg_t *regp = &(*gregsetp)[0]; - int gregoff = sizeof (greg_t) - MIPS_REGSIZE; + int gregoff = sizeof (greg_t) - mips_regsize (current_gdbarch); static char zerobuf[32] = {0}; for (regi = 0; regi <= CTX_RA; regi++) @@ -200,8 +200,8 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, { memcpy ((char *) deprecated_registers, core_reg_sect, core_reg_size); } - else if (MIPS_REGSIZE == 4 && - core_reg_size == (2 * MIPS_REGSIZE) * NUM_REGS) + else if (mips_regsize (current_gdbarch) == 4 && + core_reg_size == (2 * mips_regsize (current_gdbarch)) * NUM_REGS) { /* This is a core file from a N32 executable, 64 bits are saved for all registers. */ -- cgit v1.1