Author :
claudio
Date :
2025-02-17 15:45:55
Hash :f7a1cf18 Message :Introduce ps_trapped -- a pointer to the struct proc that is stopped
in the debugger trap.
In proc_trap set and unset ps_trapped together with ps_xsig right before
and after suspending. In ptrace(2) use this information to have
process_tprfind() always return that thread and make all of that code
no longer depend on ps_single. Only access ps_trapped holding the ps_mtx
to ensure the data is valid.
Feedback and OK kettenis@