diff options
| author | Pedro Alves <pedro@palves.net> | 2023-05-18 19:13:45 +0100 |
|---|---|---|
| committer | Pedro Alves <pedro@palves.net> | 2026-04-24 21:28:44 +0100 |
| commit | 95ddaed645ce1797ae88e26fa9f2e632f707e7c3 (patch) | |
| tree | 5f09313c71344580bf6f526f7002055569b28b13 | |
| parent | 42cdda339eff96251b69ab964e311fcf26c773c8 (diff) | |
| download | binutils-95ddaed645ce1797ae88e26fa9f2e632f707e7c3.tar.gz binutils-95ddaed645ce1797ae88e26fa9f2e632f707e7c3.tar.bz2 binutils-95ddaed645ce1797ae88e26fa9f2e632f707e7c3.zip | |
Windows gdb: Pending stop and current_event
I noticed that windows_nat_target::get_windows_debug_event does not
copy the event recorded in pending stop to
windows_process.current_event. This seems like an oversight. The
equivalent code in gdbserver/win32-low.cc does copy it.
This change will become moot later in the series, but I figure its
still clearer to correct the buglet as preparatory patch.
Approved-By: Tom Tromey <tom@tromey.com>
Change-Id: Ic8935d854cf67a3a3c4edcbc1a1e8957b800d907
| -rw-r--r-- | gdb/windows-nat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 2ecb8a105c0..89b7f103dc3 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -911,6 +911,7 @@ windows_nat_target::get_windows_debug_event { thread_id = stop->thread_id; *ourstatus = stop->status; + windows_process->current_event = stop->event; ptid_t ptid (windows_process->current_event.dwProcessId, thread_id); windows_thread_info *th = windows_process->find_thread (ptid); |
