CVSROOT:        /cvs
Module name:    src
Changes by:     kette...@cvs.openbsd.org        2012/04/13 10:37:51

Modified files:
        sys/sys        : proc.h ptrace.h 
        sys/kern       : kern_exec.c kern_exit.c kern_fork.c kern_sig.c 
                         sys_process.c 

Log message:
First stab at making ptrace(2) usable for debugging multi-threaded programs.
It implements a full-stop model where all threads are stopped before handing
over control to the debugger.  Events are reported as before through wait(2);
you will have to call ptrace(PT_GET_PROCESS_STATE, ...) to find out which
thread hit the event.  Since this changes the size of struct ptrace_state,
you will have to recompile gdb.

ok guenther@

Reply via email to