From 441532d7b8ddcdcf36a2228746687d1681a369da Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Mon, 3 Dec 2001 08:19:01 +0000 Subject: [PATCH] 2001-11-30 Pierre Muller * win32-nat.c (mappings): Correct position of XMM registers, based on FXSAVE instruction structure. --- gdb/ChangeLog | 5 +++++ gdb/win32-nat.c | 20 ++++++++++---------- gdb/windows-nat.c | 20 ++++++++++---------- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 52b0a5be59e..3cdd070244d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-11-30 Pierre Muller + + * win32-nat.c (mappings): Correct position of XMM registers, + based on FXSAVE instruction structure. + 2001-12-02 Andrew Cagney * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 1772c24a3b9..afd4035e6d6 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 1772c24a3b9..afd4035e6d6 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 }; -- 2.30.2