diff options
Diffstat (limited to 'gdbserver/netbsd-low.cc')
-rw-r--r-- | gdbserver/netbsd-low.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/netbsd-low.cc b/gdbserver/netbsd-low.cc index ada92c1..3c9dadd 100644 --- a/gdbserver/netbsd-low.cc +++ b/gdbserver/netbsd-low.cc @@ -310,7 +310,7 @@ netbsd_wait (ptid_t ptid, struct target_waitstatus *ourstatus, } if (find_thread_ptid (ptid_t (pid))) - current_thread = find_thread_ptid (wptid); + switch_to_thread (find_thread_ptid (wptid)); if (code == TRAP_LWP && pst.pe_report_event == PTRACE_LWP_CREATE) { |