From 42e8b6588e1d5d2bba2b5053cd1cfd7754e233da Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sun, 23 Aug 1992 05:36:09 +0000 Subject: [PATCH] Bug fixes from Andrew Heybey . * tm-mips.h (REGISTER_VIRTUAL_TYPE): Float regs are float type. * mips-tdep.c (mips_print_register): Alloc enough space for two regs. --- gdb/ChangeLog | 7 +++++++ gdb/tm-mips.h | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 46336ef558c..d5ccc1d13ed 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Sat Aug 22 22:33:20 1992 John Gilmore (gnu@cygnus.com) + + Bug fixes from Andrew Heybey . + + * tm-mips.h (REGISTER_VIRTUAL_TYPE): Float regs are float type. + * mips-tdep.c (mips_print_register): Alloc enough space for two regs. + Fri Aug 21 15:17:03 1992 Stu Grossman (grossman at cygnus.com) * remote.c (remote_open): Fix baud rate setting to make -b flag diff --git a/gdb/tm-mips.h b/gdb/tm-mips.h index 59dd91c4482..b8d8016ef37 100644 --- a/gdb/tm-mips.h +++ b/gdb/tm-mips.h @@ -190,7 +190,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Return the GDB type object for the "standard" data type of data in register N. */ -#define REGISTER_VIRTUAL_TYPE(N) builtin_type_int +#define REGISTER_VIRTUAL_TYPE(N) \ + (((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) \ + ? builtin_type_float : builtin_type_int) \ + /* Store the address of the place in which to copy the structure the subroutine will return. This is called from call_function. */ -- 2.34.1