gdbserver/linux-low: replace direct assignment to current_thread
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 13 Dec 2021 11:22:48 +0000 (12:22 +0100)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 13 Dec 2021 11:22:48 +0000 (12:22 +0100)
commit20ac1cdb8c76397a314c248c3db733d7db1f8339
treee55d2dfd4c25659880399fa2fa99f69876b7b571
parent24583e45efc823c1a9ea009dfddc36f9b74dcbcd
gdbserver/linux-low: replace direct assignment to current_thread

Use scoped_restore_current_thread and switch_to_thread in
linux_process_target::wait_for_sigstop.
gdbserver/linux-low.cc