CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/02/17 08:45:55
Modified files:
sys/kern : kern_sig.c sys_process.c
sys/sys : proc.h
Log 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@