diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2015-06-03 13:58:45 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2015-06-15 12:08:15 +0100 |
commit | f20c58f51f5735d1ba49efadc86b3ec67631410e (patch) | |
tree | 100cebf05ea3021d07a3ec1aae0783bb44a55f83 /gdb/windows-nat.c | |
parent | 87f5fbcc7aa49cee13e9ed44587b80d695d7e781 (diff) | |
download | gdb-f20c58f51f5735d1ba49efadc86b3ec67631410e.zip gdb-f20c58f51f5735d1ba49efadc86b3ec67631410e.tar.gz gdb-f20c58f51f5735d1ba49efadc86b3ec67631410e.tar.bz2 |
windows-nat: Replace __COPY_CONTEXT_SIZE conditional with __CYGWIN__
Replace __COPY_CONTEXT_SIZE conditional with __CYGWIN__
__COPY_CONTEXT_SIZE was added to Cygwin's headers in 2006.
Versions of Cygwin which don't define __COPY_CONTEXT_SIZE are long obsolete.
Also see the thread starting at
https://sourceware.org/ml/gdb-patches/2015-03/msg00989.html for some discussion
Note that __COPY_CONTEXT_SIZE should just be sizeof(CONTEXT) (which is a
platform constant), but isn't due to historical mistakes in Cygwin headers.
gdb/ChangeLog:
2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
* windows-nat.c (do_windows_fetch_inferior_registers)
(handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
conditional with __CYGWIN__.
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 8a42511..2f674b6 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -435,7 +435,7 @@ do_windows_fetch_inferior_registers (struct regcache *regcache, int r) if (current_thread->reload_context) { -#ifdef __COPY_CONTEXT_SIZE +#ifdef __CYGWIN__ if (have_saved_context) { /* Lie about where the program actually is stopped since @@ -829,7 +829,7 @@ handle_output_debug_string (struct target_waitstatus *ourstatus) warning (("%s"), s); } } -#ifdef __COPY_CONTEXT_SIZE +#ifdef __CYGWIN__ else { /* Got a cygwin signal marker. A cygwin signal is followed by |