From 5851ab761bf6df68c4b82103e34d3a62874c291f Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 9 Jan 2009 10:45:42 +0000 Subject: [PATCH] * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not already defined. --- gdb/ChangeLog | 5 +++++ gdb/win32-nat.c | 6 ++++++ gdb/windows-nat.c | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a3f00fd17b..d05370f848 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-01-09 Joel Brobecker + + * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not + already defined. + 2009-01-09 Joel Brobecker * win32-nat.c (get_image_name, win32_xfer_memory): Fix type diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 51443a3d4e..1b15dfbccc 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -85,6 +85,12 @@ enum #endif #include +#ifndef CONTEXT_EXTENDED_REGISTERS +/* This macro is only defined on ia32. It only makes sense on this target, + so define it as zero if not already defined. */ +#define CONTEXT_EXTENDED_REGISTERS 0 +#endif + #define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_DEBUG_REGISTERS \ | CONTEXT_EXTENDED_REGISTERS diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 51443a3d4e..1b15dfbccc 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -85,6 +85,12 @@ enum #endif #include +#ifndef CONTEXT_EXTENDED_REGISTERS +/* This macro is only defined on ia32. It only makes sense on this target, + so define it as zero if not already defined. */ +#define CONTEXT_EXTENDED_REGISTERS 0 +#endif + #define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_DEBUG_REGISTERS \ | CONTEXT_EXTENDED_REGISTERS