3 ptrace \- ptrace system call.
8 #include <sys/ptrace.h>
10 long ptrace( int req, pid_t pid, long addr, long data)
16 Ptrace(2) is called with following arguments:
39 enable tracing by parent for this process.
43 return value from instruction space
47 return value from data space.
51 return value from process table. See proc.h in kernel.
55 set value from instruction space.
59 set value from data space.
63 set value in process table.
71 exit. Turn off tracing.
75 set trace bit to enable single step.
81 errno is set by ptrace().
84 /usr/src/kernel/proc.h for process table info.