diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-02-20 03:38:32 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-02-20 03:38:32 +0000 |
commit | d02ee68167d49f249ad7bc187ad94db2d5a1bc8a (patch) | |
tree | 533256bc2bd678c88baa23302ecb2c2f0902ab4a /gdb/mips-tdep.c | |
parent | f07e76c6c1631886bdfe4a0849d0cf38e05a9060 (diff) | |
download | fsf-binutils-gdb-d02ee68167d49f249ad7bc187ad94db2d5a1bc8a.zip fsf-binutils-gdb-d02ee68167d49f249ad7bc187ad94db2d5a1bc8a.tar.gz fsf-binutils-gdb-d02ee68167d49f249ad7bc187ad94db2d5a1bc8a.tar.bz2 |
When the target h/w has 8byte registers, return 8 bytes for the raw buffer size
(from jim kingdon).
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |