diff options
author | Joel Brobecker <brobecker@gnat.com> | 2009-01-09 10:45:42 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2009-01-09 10:45:42 +0000 |
commit | 5851ab761bf6df68c4b82103e34d3a62874c291f (patch) | |
tree | 1ceca51118180d31a1af36435a980202b653d1ac | |
parent | 5732a500953b06899d4308778d7850999f70219c (diff) | |
download | fsf-binutils-gdb-5851ab761bf6df68c4b82103e34d3a62874c291f.zip fsf-binutils-gdb-5851ab761bf6df68c4b82103e34d3a62874c291f.tar.gz fsf-binutils-gdb-5851ab761bf6df68c4b82103e34d3a62874c291f.tar.bz2 |
* win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
already defined.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/win32-nat.c | 6 | ||||
-rw-r--r-- | gdb/windows-nat.c | 6 |
3 files changed, 17 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a3f00fd..d05370f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2009-01-09 Joel Brobecker <brobecker@adacore.com> + * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not + already defined. + +2009-01-09 Joel Brobecker <brobecker@adacore.com> + * win32-nat.c (get_image_name, win32_xfer_memory): Fix type definition of local variable "done". (info_w32_command, handle_exception): Remove unnecessary cast. diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 51443a3..1b15dfb 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -85,6 +85,12 @@ enum #endif #include <psapi.h> +#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 51443a3..1b15dfb 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -85,6 +85,12 @@ enum #endif #include <psapi.h> +#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 |