diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e03b625..4c58342 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-02-19 Andrew Cagney <ac131313@redhat.com> + + Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>: + * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE, + then floating point registers are 8 bytes. + 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com> * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 277eb35..94a255e 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -419,6 +419,11 @@ mips_register_raw_size (int reg_nr) { if (mips64_transfers_32bit_regs_p) return REGISTER_VIRTUAL_SIZE (reg_nr); + else if (reg_nr >= FP0_REGNUM && reg_nr < FP0_REGNUM + 32 + && FP_REGISTER_DOUBLE) + /* For MIPS_ABI_N32 (for example) we need 8 byte floating point + registers. */ + return 8; else return MIPS_REGSIZE; } |