Fix x86_64 mingw build
authorTom Tromey <tromey@adacore.com>
Mon, 3 May 2021 14:57:46 +0000 (08:57 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 3 May 2021 18:40:19 +0000 (12:40 -0600)
PR build/27807 points out that my recent changes to the Windows port
missed a spot in win32-i386-low.cc -- a call to
win32_Wow64GetThreadContext remained, causing link errors in
gdbserver.  This happened because I tested an i686 build, but this
code is only used on an x86_64 build.

This patch fixes the bug.  I am checking it in.

gdbserver/ChangeLog
2021-05-03  Tom Tromey  <tromey@adacore.com>

PR build/27807:
* win32-i386-low.cc (i386_get_thread_context): Call
Wow64GetThreadContext, not win32_Wow64GetThreadContext.

gdbserver/ChangeLog
gdbserver/win32-i386-low.cc

index 057ed158be918e4b2af761af1724d08bd70c196f..8ff59d1f486282d270a55622adda88dce4acb8db 100644 (file)
@@ -1,3 +1,9 @@
+2021-05-03  Tom Tromey  <tromey@adacore.com>
+
+       PR build/27807:
+       * win32-i386-low.cc (i386_get_thread_context): Call
+       Wow64GetThreadContext, not win32_Wow64GetThreadContext.
+
 2021-04-30  Tom Tromey  <tromey@adacore.com>
 
        * win32-low.cc (do_initial_child_stuff): Update.
index 5fc4be0d4c746feaff39492db30029b9c21d2a3b..e2afd2a8c17f4a587e56787cc539eee43298df88 100644 (file)
@@ -260,7 +260,7 @@ i386_get_thread_context (windows_thread_info *th)
   BOOL ret;
 #ifdef __x86_64__
   if (wow64_process)
-    ret = win32_Wow64GetThreadContext (th->h, &th->wow64_context);
+    ret = Wow64GetThreadContext (th->h, &th->wow64_context);
   else
 #endif
     ret = GetThreadContext (th->h, &th->context);
This page took 0.040578 seconds and 4 git commands to generate.