diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2022-05-20 14:45:53 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2022-06-02 10:39:46 +0100 |
commit | 1f03fa9921802a727bb218da2df26e4ed14fc1c9 (patch) | |
tree | d5faf593f1dc8f1aa4d95aa7700f417a1f292390 /gdb/nat | |
parent | c9c157c7650a7570123869445e7dd331ecdd3317 (diff) | |
download | gdb-1f03fa9921802a727bb218da2df26e4ed14fc1c9.zip gdb-1f03fa9921802a727bb218da2df26e4ed14fc1c9.tar.gz gdb-1f03fa9921802a727bb218da2df26e4ed14fc1c9.tar.bz2 |
Fix Cygwin build after 0578e87f
Fix Cygwin build after 0578e87f ("Remove some globals from
nat/windows-nat.c"). Update code under ifdef __CYGWIN__ for globals
moved to members of struct windows_process_info.
Diffstat (limited to 'gdb/nat')
-rw-r--r-- | gdb/nat/windows-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nat/windows-nat.c b/gdb/nat/windows-nat.c index f681801..ca6a529 100644 --- a/gdb/nat/windows-nat.c +++ b/gdb/nat/windows-nat.c @@ -198,7 +198,7 @@ windows_process_info::get_exec_module_filename (char *exe_name_ret, to POSIX format into the destination buffer. */ cygwin_buf_t *pathbuf = (cygwin_buf_t *) alloca (exe_name_max_len * sizeof (cygwin_buf_t)); - len = GetModuleFileNameEx (current_process_handle, + len = GetModuleFileNameEx (handle, dh_buf, pathbuf, exe_name_max_len); if (len == 0) error (_("Error getting executable filename: %u."), |