diff options
author | John Gilmore <gnu@cygnus> | 1992-08-23 05:36:09 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-08-23 05:36:09 +0000 |
commit | 42e8b6588e1d5d2bba2b5053cd1cfd7754e233da (patch) | |
tree | d89c27684ec92db5a39d7d8ba6cbe98f5fbb8183 /gdb/tm-mips.h | |
parent | 39a131782f3d18e316c10f5217949790cbf0c87b (diff) | |
download | gdb-42e8b6588e1d5d2bba2b5053cd1cfd7754e233da.zip gdb-42e8b6588e1d5d2bba2b5053cd1cfd7754e233da.tar.gz gdb-42e8b6588e1d5d2bba2b5053cd1cfd7754e233da.tar.bz2 |
Bug fixes from Andrew Heybey <ath@lcs.mit.edu>.
* tm-mips.h (REGISTER_VIRTUAL_TYPE): Float regs are float type.
* mips-tdep.c (mips_print_register): Alloc enough space for two regs.
Diffstat (limited to 'gdb/tm-mips.h')
-rw-r--r-- | gdb/tm-mips.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/tm-mips.h b/gdb/tm-mips.h index 59dd91c..b8d8016 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. */ |