public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Fix Cygwin build after 0578e87f
@ 2022-06-02 9:40 Jon TURNEY
0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2022-06-02 9:40 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1f03fa9921802a727bb218da2df26e4ed14fc1c9
commit 1f03fa9921802a727bb218da2df26e4ed14fc1c9
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Fri May 20 14:45:53 2022 +0100
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.
Diff:
---
gdb/nat/windows-nat.c | 2 +-
gdb/windows-nat.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/nat/windows-nat.c b/gdb/nat/windows-nat.c
index f6818015c53..ca6a529601e 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."),
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 6c6dea84bfa..ab0efe72d8f 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -884,7 +884,7 @@ windows_nat::windows_process_info::handle_output_debug_string
if (!retval)
retval = current_event.dwThreadId;
else if ((x = (LPCVOID) (uintptr_t) strtoull (p, NULL, 0))
- && ReadProcessMemory (current_process_handle, x,
+ && ReadProcessMemory (handle, x,
&saved_context,
__COPY_CONTEXT_SIZE, &n)
&& n == __COPY_CONTEXT_SIZE)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-02 9:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-02 9:40 [binutils-gdb] Fix Cygwin build after 0578e87f Jon TURNEY
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).