* [RFA/win32] CONTEXT_EXTENDED_REGISTERS is not defined on x86_64-windows
@ 2009-01-07 11:35 Joel Brobecker
2009-01-07 17:01 ` Christopher Faylor
0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2009-01-07 11:35 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 674 bytes --]
Hello,
win32-nat.c uses CONTEXT_EXTENDED_REGISTERS in the following macro
declaration:
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_DEBUG_REGISTERS \
| CONTEXT_EXTENDED_REGISTERS
However, CONTEXT_EXTENDED_REGISTERS is not defined on x86_64-windows.
It seems to me that this macro only makes sense on i386, so I simply
defined it to 0 if not already defined. This should have no effect
on x86-windows while doing the right thing on x86_64-windows.
2009-01-07 Joel Brobecker <brobecker@adacore.com>
* win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
already defined.
Tested on x86-windows.
OK to apply?
Thanks,
--
Joel
[-- Attachment #2: macro.diff --]
[-- Type: text/plain, Size: 496 bytes --]
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA/win32] CONTEXT_EXTENDED_REGISTERS is not defined on x86_64-windows
2009-01-07 11:35 [RFA/win32] CONTEXT_EXTENDED_REGISTERS is not defined on x86_64-windows Joel Brobecker
@ 2009-01-07 17:01 ` Christopher Faylor
2009-01-09 10:46 ` Joel Brobecker
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Faylor @ 2009-01-07 17:01 UTC (permalink / raw)
To: gdb-patches, Joel Brobecker
On Wed, Jan 07, 2009 at 03:34:52PM +0400, Joel Brobecker wrote:
>2009-01-07 Joel Brobecker <brobecker@adacore.com>
>
> * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
> already defined.
>
>Tested on x86-windows.
>OK to apply?
Yes.
cgf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA/win32] CONTEXT_EXTENDED_REGISTERS is not defined on x86_64-windows
2009-01-07 17:01 ` Christopher Faylor
@ 2009-01-09 10:46 ` Joel Brobecker
0 siblings, 0 replies; 3+ messages in thread
From: Joel Brobecker @ 2009-01-09 10:46 UTC (permalink / raw)
To: gdb-patches
> >2009-01-07 Joel Brobecker <brobecker@adacore.com>
> >
> > * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
> > already defined.
> >
> >Tested on x86-windows.
> >OK to apply?
>
> Yes.
Thank you. Checked in.
--
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-09 10:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-07 11:35 [RFA/win32] CONTEXT_EXTENDED_REGISTERS is not defined on x86_64-windows Joel Brobecker
2009-01-07 17:01 ` Christopher Faylor
2009-01-09 10:46 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox