diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/win32-nat.c | 20 | ||||
-rw-r--r-- | gdb/windows-nat.c | 20 |
3 files changed, 25 insertions, 20 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 52b0a5b..3cdd070 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr> + + * win32-nat.c (mappings): Correct position of XMM registers, + based on FXSAVE instruction structure. + 2001-12-02 Andrew Cagney <ac131313@redhat.com> * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 1772c24..afd4035 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -179,16 +179,16 @@ static const int mappings[] = context_offset (FloatSave.ErrorSelector) #ifdef HAVE_SSE_REGS /* XMM0-7 */ , - context_offset (ExtendedRegisters[0*16]), - context_offset (ExtendedRegisters[1*16]), - context_offset (ExtendedRegisters[2*16]), - context_offset (ExtendedRegisters[3*16]), - context_offset (ExtendedRegisters[4*16]), - context_offset (ExtendedRegisters[5*16]), - context_offset (ExtendedRegisters[6*16]), - context_offset (ExtendedRegisters[7*16]), - /* MXCSR untested */ - context_offset (ExtendedRegisters[8*16]) + context_offset (ExtendedRegisters[10*16]), + context_offset (ExtendedRegisters[11*16]), + context_offset (ExtendedRegisters[12*16]), + context_offset (ExtendedRegisters[13*16]), + context_offset (ExtendedRegisters[14*16]), + context_offset (ExtendedRegisters[15*16]), + context_offset (ExtendedRegisters[16*16]), + context_offset (ExtendedRegisters[17*16]), + /* MXCSR */ + context_offset (ExtendedRegisters[24]) #endif }; diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 1772c24..afd4035 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -179,16 +179,16 @@ static const int mappings[] = context_offset (FloatSave.ErrorSelector) #ifdef HAVE_SSE_REGS /* XMM0-7 */ , - context_offset (ExtendedRegisters[0*16]), - context_offset (ExtendedRegisters[1*16]), - context_offset (ExtendedRegisters[2*16]), - context_offset (ExtendedRegisters[3*16]), - context_offset (ExtendedRegisters[4*16]), - context_offset (ExtendedRegisters[5*16]), - context_offset (ExtendedRegisters[6*16]), - context_offset (ExtendedRegisters[7*16]), - /* MXCSR untested */ - context_offset (ExtendedRegisters[8*16]) + context_offset (ExtendedRegisters[10*16]), + context_offset (ExtendedRegisters[11*16]), + context_offset (ExtendedRegisters[12*16]), + context_offset (ExtendedRegisters[13*16]), + context_offset (ExtendedRegisters[14*16]), + context_offset (ExtendedRegisters[15*16]), + context_offset (ExtendedRegisters[16*16]), + context_offset (ExtendedRegisters[17*16]), + /* MXCSR */ + context_offset (ExtendedRegisters[24]) #endif }; |