diff options
author | Tom Tromey <tromey@adacore.com> | 2022-04-27 10:14:01 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-04-27 10:45:10 -0600 |
commit | 801eb70f9aa916650b9ca03a1d54d426a3e99f17 (patch) | |
tree | 6d936c9dab64bf7aac5f17f506406d949af233a6 /gdbserver/win32-i386-low.cc | |
parent | 8e6afe4013fd57f92eec4659439bc6e44b0446f8 (diff) | |
download | binutils-gdb-801eb70f9aa916650b9ca03a1d54d426a3e99f17.tar.gz |
Fix gdbserver build for x86-64 Windows
I broke the gdbserver build on x86-64 Windows a little while back.
Previously, I could not build this configuration, but today I found
out that if I configure with:
--host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32
using the Fedora 34 tools, it will in fact build. I'm not certain,
but maybe the gnulib update helped with this.
This patch fixes the build. I'm checking it in.
Diffstat (limited to 'gdbserver/win32-i386-low.cc')
-rw-r--r-- | gdbserver/win32-i386-low.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdbserver/win32-i386-low.cc b/gdbserver/win32-i386-low.cc index 2b18c2cb1a3..856040801e8 100644 --- a/gdbserver/win32-i386-low.cc +++ b/gdbserver/win32-i386-low.cc @@ -85,7 +85,7 @@ win32_get_current_dr (int dr) case DR: \ return th->wow64_context.Dr ## DR - if (wow64_process) + if (windows_process.wow64_process) { switch (dr) { @@ -245,7 +245,7 @@ i386_get_thread_context (windows_thread_info *th) again: #ifdef __x86_64__ - if (wow64_process) + if (windows_process.wow64_process) th->wow64_context.ContextFlags = (CONTEXT_FULL | CONTEXT_FLOATING_POINT | CONTEXT_DEBUG_REGISTERS @@ -259,7 +259,7 @@ i386_get_thread_context (windows_thread_info *th) BOOL ret; #ifdef __x86_64__ - if (wow64_process) + if (windows_process.wow64_process) ret = Wow64GetThreadContext (th->h, &th->wow64_context); else #endif @@ -288,7 +288,7 @@ i386_prepare_to_resume (windows_thread_info *th) win32_require_context (th); #ifdef __x86_64__ - if (wow64_process) + if (windows_process.wow64_process) { th->wow64_context.Dr0 = dr->dr_mirror[0]; th->wow64_context.Dr1 = dr->dr_mirror[1]; @@ -324,7 +324,7 @@ static void i386_single_step (windows_thread_info *th) { #ifdef __x86_64__ - if (wow64_process) + if (windows_process.wow64_process) th->wow64_context.EFlags |= FLAG_TRACE_BIT; else #endif @@ -466,7 +466,7 @@ i386_fetch_inferior_register (struct regcache *regcache, { const int *mappings; #ifdef __x86_64__ - if (!wow64_process) + if (!windows_process.wow64_process) mappings = amd64_mappings; else #endif @@ -474,7 +474,7 @@ i386_fetch_inferior_register (struct regcache *regcache, char *context_offset; #ifdef __x86_64__ - if (wow64_process) + if (windows_process.wow64_process) context_offset = (char *) &th->wow64_context + mappings[r]; else #endif @@ -502,7 +502,7 @@ i386_store_inferior_register (struct regcache *regcache, { const int *mappings; #ifdef __x86_64__ - if (!wow64_process) + if (!windows_process.wow64_process) mappings = amd64_mappings; else #endif @@ -510,7 +510,7 @@ i386_store_inferior_register (struct regcache *regcache, char *context_offset; #ifdef __x86_64__ - if (wow64_process) + if (windows_process.wow64_process) context_offset = (char *) &th->wow64_context + mappings[r]; else #endif @@ -550,7 +550,7 @@ i386_win32_num_regs (void) { int num_regs; #ifdef __x86_64__ - if (!wow64_process) + if (!windows_process.wow64_process) num_regs = sizeof (amd64_mappings) / sizeof (amd64_mappings[0]); else #endif |