mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
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.
This commit is contained in:
@ -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>
|
2018-06-08 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
|
* Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
|
||||||
|
@ -627,6 +627,7 @@ static int
|
|||||||
win32_create_inferior (const char *program,
|
win32_create_inferior (const char *program,
|
||||||
const std::vector<char *> &program_args)
|
const std::vector<char *> &program_args)
|
||||||
{
|
{
|
||||||
|
client_state &cs = get_client_state ();
|
||||||
#ifndef USE_WIN32API
|
#ifndef USE_WIN32API
|
||||||
char real_path[PATH_MAX];
|
char real_path[PATH_MAX];
|
||||||
char *orig_path, *new_path, *path_ptr;
|
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
|
/* Wait till we are at 1st instruction in program, return new pid
|
||||||
(assuming success). */
|
(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;
|
return current_process_id;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user