diff options
author | Pedro Alves <pedro@palves.net> | 2023-05-17 14:34:53 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2024-05-10 11:26:00 +0100 |
commit | 467b267632bcc7276dbdf09ee3f9275a79e9f1ae (patch) | |
tree | f602a39f9433908f9fbcaa3543012104e03703fd /gdbserver | |
parent | a0bc4291f1d98739c6b1add026ee55c3f0d72e88 (diff) | |
download | fsf-binutils-gdb-467b267632bcc7276dbdf09ee3f9275a79e9f1ae.zip fsf-binutils-gdb-467b267632bcc7276dbdf09ee3f9275a79e9f1ae.tar.gz fsf-binutils-gdb-467b267632bcc7276dbdf09ee3f9275a79e9f1ae.tar.bz2 |
Windows gdb+gdbserver: Eliminate struct pending_stop
After the previous patches, struct pending_stop only contains one
field. So move that field into the windows_thread_info structure
directly, and eliminate struct pending_stop.
Change-Id: I7955884b3f378d8b39b908f6252d215f6568b367
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/win32-low.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc index 4707acc..004bf94 100644 --- a/gdbserver/win32-low.cc +++ b/gdbserver/win32-low.cc @@ -848,7 +848,7 @@ win32_process_target::resume (thread_resume *resume_info, size_t n) } if (!th->suspended - && th->pending_stop.status.kind () != TARGET_WAITKIND_IGNORE) + && th->pending_status.kind () != TARGET_WAITKIND_IGNORE) any_pending = true; } @@ -992,10 +992,10 @@ get_child_debug_event (DWORD *continue_status, auto *th = (windows_thread_info *) thread_target_data (thread); if (!th->suspended - && th->pending_stop.status.kind () != TARGET_WAITKIND_IGNORE) + && th->pending_status.kind () != TARGET_WAITKIND_IGNORE) { - *ourstatus = th->pending_stop.status; - th->pending_stop.status.set_ignore (); + *ourstatus = th->pending_status; + th->pending_status.set_ignore (); *current_event = th->last_event; ptid = debug_event_ptid (current_event); switch_to_thread (find_thread_ptid (ptid)); @@ -1155,13 +1155,13 @@ get_child_debug_event (DWORD *continue_status, if (th != nullptr && th->suspended) { /* Pending stop. See the comment by the definition of - "windows_thread_info::pending_stop" for details on why this + "windows_thread_info::pending_status" for details on why this is needed. */ OUTMSG2 (("get_windows_debug_event - " "unexpected stop in suspended thread 0x%x\n", th->tid)); maybe_adjust_pc (*current_event); - th->pending_stop.status = *ourstatus; + th->pending_status = *ourstatus; ourstatus->set_spurious (); } else |