aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2022-05-20 14:35:57 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2022-06-02 10:39:44 +0100
commitc9c157c7650a7570123869445e7dd331ecdd3317 (patch)
treedee0e3d0478d3bdfea78581a83bbb8a1c542d353 /gdb/windows-nat.c
parent6a031255cf1842447a143849e720349eb00533d2 (diff)
downloadfsf-binutils-gdb-c9c157c7650a7570123869445e7dd331ecdd3317.zip
fsf-binutils-gdb-c9c157c7650a7570123869445e7dd331ecdd3317.tar.gz
fsf-binutils-gdb-c9c157c7650a7570123869445e7dd331ecdd3317.tar.bz2
Fix Cygwin build after fcab5839
Fix Cygwin build after fcab5839 ("Implement pid_to_exec_file for Windows in gdbserver"). That change moves code from gdb/windows-nat.c to gdb/nat/windows-nat.c, but doesn't add the required typedefs and includes for parts of that code under ifdef __CYGWIN__.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 11f5430..6c6dea8 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -79,11 +79,9 @@ static windows_process_info windows_process;
#undef STARTUPINFO
#undef CreateProcess
-#undef GetModuleFileNameEx
#ifndef __CYGWIN__
# define __PMAX (MAX_PATH + 1)
-# define GetModuleFileNameEx GetModuleFileNameExA
# define STARTUPINFO STARTUPINFOA
# define CreateProcess CreateProcessA
#else
@@ -93,7 +91,6 @@ static windows_process_info windows_process;
static CORE_ADDR cygwin_load_end;
# define __USEWIDE
typedef wchar_t cygwin_buf_t;
-# define GetModuleFileNameEx GetModuleFileNameExW
# define STARTUPINFO STARTUPINFOW
# define CreateProcess CreateProcessW
#endif