mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-22 23:31:26 +00:00

* Fixed issues in windows thread switching by implementing thread attach for w32dbg =!pid Previously the function attempted to OpenProcess even though the main pid is already opened by __open and the fact that re-opening the main pid wouldn't do anything. This way it attaches to new threads when called by r_debug_select. * Modified w32_continue to update rio->pi.dwThreadId after switching to the requested thread Manually changing iop->pi.dwThreadId in io_w32dbg's =!pid created a problematic scenario when w32_continue is called with the last event's tid from dbg_wait. This solution makes sure iop->pi.dwThreadId keeps being updated after events on other threads arrive and that w32_continue actually uses the given tid. * Modified w32_continue return values