* win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for SSE
authorChristopher Faylor <me+cygwin@cgf.cx>
Sat, 13 Sep 2003 16:46:21 +0000 (16:46 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Sat, 13 Sep 2003 16:46:21 +0000 (16:46 +0000)
registers since gdb will not operate correctly without this.  Restore include
file ordering munged in previous change.
* config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.

gdb/ChangeLog
gdb/config/i386/tm-cygwin.h
gdb/win32-nat.c
gdb/windows-nat.c

index d74a8ad9af7c64ef5ab9cea2b714d8122b4c4f4b..147eafb05f049bad7c12bdd80b6298e3c33d2d33 100644 (file)
@@ -1,3 +1,10 @@
+2003-09-13  Christopher Faylor  <cgf@redhat.com>
+
+       * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
+       SSE registers since gdb will not operate correctly without this.
+       Restore include file ordering munged in previous change.
+       * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
+
 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
 
        * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
index 935966d46ba340306e83cd0b62549c3cd1c39614..4b926f96cd47e138dc4ae5c8a94ed88f53fa6474 100644 (file)
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/* Use SSE registers if winnt.h contains information about them.  */
-#ifdef CONTEXT_EXTENDED_REGISTERS
-#define HAVE_SSE_REGS
-#else
-#undef HAVE_SSE_REGS
-#endif /* CONTEXT_EXTENDED_REGISTERS */
-
 #include "i386/tm-i386.h"
 
 #define ATTACH_NO_WAIT
index 807e9856624c0561bcfb896f0f627403ec206777..f0d87efe24f8fdc7c79342ba5ce683441e729430 100644 (file)
 
 /* We assume we're being built with and will be used for cygwin.  */
 
-#include <windows.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <imagehlp.h>
-#include <sys/cygwin.h>
 #include "defs.h"
-#include "tm.h"                        /* required for SSE registers */
 #include "frame.h"             /* required by inferior.h */
 #include "inferior.h"
 #include "target.h"
 #include "regcache.h"
 #include "top.h"
 #include "i386-tdep.h"
+#include <signal.h>
+#include <sys/types.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include <windows.h>
+#include <imagehlp.h>
+#include <sys/cygwin.h>
 
 #include "buildsym.h"
 #include "symfile.h"
@@ -70,12 +69,8 @@ enum
 #include <sys/procfs.h>
 #include <psapi.h>
 
-#ifdef HAVE_SSE_REGS
 #define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_DEBUG_REGISTERS \
        | CONTEXT_EXTENDED_REGISTERS
-#else
-#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_DEBUG_REGISTERS
-#endif
 
 static unsigned dr[8];
 static int debug_registers_changed = 0;
index 807e9856624c0561bcfb896f0f627403ec206777..f0d87efe24f8fdc7c79342ba5ce683441e729430 100644 (file)
 
 /* We assume we're being built with and will be used for cygwin.  */
 
-#include <windows.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <imagehlp.h>
-#include <sys/cygwin.h>
 #include "defs.h"
-#include "tm.h"                        /* required for SSE registers */
 #include "frame.h"             /* required by inferior.h */
 #include "inferior.h"
 #include "target.h"
 #include "regcache.h"
 #include "top.h"
 #include "i386-tdep.h"
+#include <signal.h>
+#include <sys/types.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include <windows.h>
+#include <imagehlp.h>
+#include <sys/cygwin.h>
 
 #include "buildsym.h"
 #include "symfile.h"
@@ -70,12 +69,8 @@ enum
 #include <sys/procfs.h>
 #include <psapi.h>
 
-#ifdef HAVE_SSE_REGS
 #define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_DEBUG_REGISTERS \
        | CONTEXT_EXTENDED_REGISTERS
-#else
-#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_DEBUG_REGISTERS
-#endif
 
 static unsigned dr[8];
 static int debug_registers_changed = 0;