[binutils-gdb] Add missing client_state struct references to win target.
Stan Cox
scox@sourceware.org
Fri Jun 8 20:48:00 GMT 2018
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6341380d5cb8e645d79953a24701219a048f426f
commit 6341380d5cb8e645d79953a24701219a048f426f
Author: Stan Cox <scox@redhat.com>
Date: Fri Jun 8 16:40:52 2018 -0400
Add missing client_state struct references to win target.
gdbserver/ChangeLog
* win32-low.c (win32_create_inferior): last_ptid and last_status
moved to client_state.
Diff:
---
gdb/gdbserver/ChangeLog | 5 +++++
gdb/gdbserver/win32-low.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index d040dc1..fb96a39 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2018-06-08 Stan Cox <scox@redhat.com>
+
+ * win32-low.c (win32_create_inferior): last_ptid and last_status
+ moved to client_state.
+
2018-06-08 Pedro Alves <palves@redhat.com>
* Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c
index 7ed5fc5..8f5ea5a 100644
--- a/gdb/gdbserver/win32-low.c
+++ b/gdb/gdbserver/win32-low.c
@@ -627,6 +627,7 @@ static int
win32_create_inferior (const char *program,
const std::vector<char *> &program_args)
{
+ client_state &cs = get_client_state ();
#ifndef USE_WIN32API
char real_path[PATH_MAX];
char *orig_path, *new_path, *path_ptr;
@@ -706,7 +707,7 @@ win32_create_inferior (const char *program,
/* Wait till we are at 1st instruction in program, return new pid
(assuming success). */
- last_ptid = win32_wait (pid_to_ptid (current_process_id), &last_status, 0);
+ cs.last_ptid = win32_wait (pid_to_ptid (current_process_id), &cs.last_status, 0);
return current_process_id;
}
More information about the Gdb-cvs
mailing list