Expand description
sys/ptrace.h implementation.
Non-POSIX, see https://www.man7.org/linux/man-pages/man2/ptrace.2.html.
Constants§
- PTRACE_
ATTACH - Attach to the process specified in
pid, making it a tracee of the calling process. - PTRACE_
CONT - Restart the stopped tracee process.
- PTRACE_
DETACH - Restart the stopped tracee as for
PTRACE_CONT, but first detach from it. - PTRACE_
GETFPREGS - Copy the tracee’s floating-point registers to the address
datain the tracer. - PTRACE_
GETREGS - Copy the tracee’s general-purpose registers to the address
datain the tracer. - PTRACE_
KILL - Send the tracee a
SIGKILLto terminate it. Considered deprecated. Should just sendSIGKILLdirectly instead. - PTRACE_
PEEKDATA - Read a word at the address
addrin the tracee’s memory, returning the word as a result of theptrace()call. - PTRACE_
PEEKTEXT - Equivalent to
PTRACE_PEEKDATA. - PTRACE_
POKEDATA - Copy the word
datato the addressaddrin the tracee’s memory. - PTRACE_
POKETEXT - Equivalent to
PTRACE_POKEDATA. - PTRACE_
SETFPREGS - Modify the tracee’s floating-point registers from the address
datain the tracer. - PTRACE_
SETREGS - Modify the tracee’s general-purpose registers from the address
datain the tracer. - PTRACE_
SINGLESTEP - Restart the stopped tracee as for
PTRACE_CONT, but arrange for the tracee to be stopped after execution of a single instruction. - PTRACE_
SYSCALL - Restart the stopped tracee as for
PTRACE_CONT, but arrange for the tracee to be stopped at the next entry to or exit from a system call. - PTRACE_
SYSEMU - Continue and stop on entry to the next system call, which will not be executed.
- PTRACE_
SYSEMU_ SINGLESTEP - Same as
PTRACE_SYSEMUbut also singlestep if not a system call. - PTRACE_
TRACEME - Indicate that this process is to be traced by its parent. Only used by the tracee.
Functions§
- ptrace⚠
- Non-POSIX, see https://www.man7.org/linux/man-pages/man2/ptrace.2.html.