diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-11-02 04:44:12 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-11-02 04:44:12 +0000 |
commit | ef295fa87c7cd12e237d218e739a86575d0a6008 (patch) | |
tree | 99a56a5f97bf40072c328a5f38dc0509e23da627 /gdb/config | |
parent | 08a13ade13c99526b98fe1d8ff5e574f8f5c4590 (diff) | |
download | gdb-ef295fa87c7cd12e237d218e739a86575d0a6008.tar.gz |
import gdb-1999-11-01 snapshot
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/i386/tm-linux.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/config/i386/tm-linux.h b/gdb/config/i386/tm-linux.h index 5faa6ff6264..42daaeae5bf 100644 --- a/gdb/config/i386/tm-linux.h +++ b/gdb/config/i386/tm-linux.h @@ -23,6 +23,9 @@ #define I386_GNULINUX_TARGET #define HAVE_I387_REGS +#ifdef HAVE_PTRACE_GETXFPREGS +#define HAVE_SSE_REGS +#endif #include "i386/tm-i386.h" @@ -90,8 +93,12 @@ extern int i387_store_floating (PTR addr, int len, long double val); /* Return the GDB type object for the "standard" data type of data in register N. */ #undef REGISTER_VIRTUAL_TYPE -#define REGISTER_VIRTUAL_TYPE(N) \ - (IS_FP_REGNUM (N) ? builtin_type_long_double : builtin_type_int) +#define REGISTER_VIRTUAL_TYPE(N) \ + (((N) == PC_REGNUM || (N) == FP_REGNUM || (N) == SP_REGNUM) \ + ? lookup_pointer_type (builtin_type_void) \ + : IS_FP_REGNUM(N) ? builtin_type_long_double \ + : IS_SSE_REGNUM(N) ? builtin_type_v4sf \ + : builtin_type_int) #endif |