From: Christopher Faylor Date: Sat, 13 Sep 2003 16:46:21 +0000 (+0000) Subject: * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for SSE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=403d99099a914339dffa20d83f7ab138d33e45e3;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d74a8ad9af7..147eafb05f0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2003-09-13 Christopher Faylor + + * 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 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from diff --git a/gdb/config/i386/tm-cygwin.h b/gdb/config/i386/tm-cygwin.h index 935966d46ba..4b926f96cd4 100644 --- a/gdb/config/i386/tm-cygwin.h +++ b/gdb/config/i386/tm-cygwin.h @@ -19,13 +19,6 @@ 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 diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 807e9856624..f0d87efe24f 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -26,15 +26,7 @@ /* We assume we're being built with and will be used for cygwin. */ -#include -#include -#include -#include -#include -#include -#include #include "defs.h" -#include "tm.h" /* required for SSE registers */ #include "frame.h" /* required by inferior.h */ #include "inferior.h" #include "target.h" @@ -44,6 +36,13 @@ #include "regcache.h" #include "top.h" #include "i386-tdep.h" +#include +#include +#include +#include +#include +#include +#include #include "buildsym.h" #include "symfile.h" @@ -70,12 +69,8 @@ enum #include #include -#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; diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 807e9856624..f0d87efe24f 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -26,15 +26,7 @@ /* We assume we're being built with and will be used for cygwin. */ -#include -#include -#include -#include -#include -#include -#include #include "defs.h" -#include "tm.h" /* required for SSE registers */ #include "frame.h" /* required by inferior.h */ #include "inferior.h" #include "target.h" @@ -44,6 +36,13 @@ #include "regcache.h" #include "top.h" #include "i386-tdep.h" +#include +#include +#include +#include +#include +#include +#include #include "buildsym.h" #include "symfile.h" @@ -70,12 +69,8 @@ enum #include #include -#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;