From 66903e97131aaa2dbb70f4dda9009be7dbedd1be Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 13 Sep 2003 02:26:52 +0000 Subject: [PATCH] * win32-nat.c: Reorganize so that defines used by target headers are actually defined by the system headers. * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists. --- gdb/ChangeLog | 7 +++++++ gdb/config/i386/tm-cygwin.h | 2 +- gdb/win32-nat.c | 14 +++++++------- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e48c010db7b..2a7e48de70e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2003-09-12 Christopher Faylor + + * win32-nat.c: Reorganize so that defines used by target headers are + actually defined by the system headers. + * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather + than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists. + 2003-09-12 Jim Blandy * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux". diff --git a/gdb/config/i386/tm-cygwin.h b/gdb/config/i386/tm-cygwin.h index f30c4329144..935966d46ba 100644 --- a/gdb/config/i386/tm-cygwin.h +++ b/gdb/config/i386/tm-cygwin.h @@ -20,7 +20,7 @@ Boston, MA 02111-1307, USA. */ /* Use SSE registers if winnt.h contains information about them. */ -#ifdef HAVE_CONTEXT_EXTENDED_REGISTERS +#ifdef CONTEXT_EXTENDED_REGISTERS #define HAVE_SSE_REGS #else #undef HAVE_SSE_REGS diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 77e9f4a7763..efa594b910f 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -26,6 +26,13 @@ /* 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 */ @@ -37,13 +44,6 @@ #include "regcache.h" #include "top.h" #include "i386-tdep.h" -#include -#include -#include -#include -#include -#include -#include #include "buildsym.h" #include "symfile.h" -- 2.47.2