mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
![]() This commit adds a basic implementation of the ptrace syscall, which allows one process (the tracer) to control another process (the tracee). While a process is being traced, it is stopped whenever a signal is received (other than SIGCONT). The tracer can start tracing another thread with PT_ATTACH, which causes the tracee to stop. From there, the tracer can use PT_CONTINUE to continue the execution of the tracee, or use other request codes (which haven't been implemented yet) to modify the state of the tracee. Additional request codes are PT_SYSCALL, which causes the tracee to continue exection but stop at the next entry or exit from a syscall, and PT_GETREGS which fethces the last saved register set of the tracee (can be used to inspect syscall arguments and return value). A special request code is PT_TRACE_ME, which is issued by the tracee and causes it to stop when it calls execve and wait for the tracer to attach. |
||
---|---|---|
.. | ||
arch/i386 | ||
cdefs.h | ||
file.h | ||
ioctl.h | ||
ioctl_numbers.h | ||
mman.h | ||
param.h | ||
resource.h | ||
select.cpp | ||
select.h | ||
socket.cpp | ||
socket.h | ||
stat.h | ||
sysmacros.h | ||
time.h | ||
times.h | ||
types.h | ||
uio.cpp | ||
uio.h | ||
un.h | ||
utsname.h | ||
wait.cpp | ||
wait.h |