Module nix::sys::ptrace
#[cfg(any(target_os = "android", target_os = "dragonfly", target_os =
"freebsd", target_os = "linux", target_os = "macos", target_os = "netbsd",
target_os = "openbsd"))]
Structs
Ptrace options used in conjunction with the PTRACE_SETOPTIONS request.
See man ptrace
for more details.
Enums
Functions
Attach to a running process, as with ptrace(PTRACE_ATTACH, ...)
Restart the stopped tracee process, as with ptrace(PTRACE_CONT, ...)
Detaches the current running process, as with ptrace(PTRACE_DETACH, ...)
Gets a ptrace event as described by ptrace(PTRACE_GETEVENTMSG,...)
getregs all(target_os = "linux", any(all(target_arch = "x86_64", any(target_env = "gnu", target_env = "musl")), all(target_arch = "x86", target_env = "gnu")))
Get user registers, as with ptrace(PTRACE_GETREGS, ...)
Get siginfo as with ptrace(PTRACE_GETSIGINFO,...)
interrupt target_os = "linux"
Stop a tracee, as with ptrace(PTRACE_INTERRUPT, ...)
Issues a kill request as with ptrace(PTRACE_KILL, ...)
Reads a word from a processes memory at the given address
seize target_os = "linux"
Attach to a running process, as with ptrace(PTRACE_SEIZE, ...)
Set options, as with ptrace(PTRACE_SETOPTIONS,...)
.
setregs all(target_os = "linux", any(all(target_arch = "x86_64", any(target_env = "gnu", target_env = "musl")), all(target_arch = "x86", target_env = "gnu")))
Set user registers, as with ptrace(PTRACE_SETREGS, ...)
Set siginfo as with ptrace(PTRACE_SETSIGINFO,...)
Move the stopped tracee process forward by a single step as with
ptrace(PTRACE_SINGLESTEP, ...)
Continue execution until the next syscall, as with ptrace(PTRACE_SYSCALL, ...)
sysemu all(target_os = "linux", target_env = "gnu", any(target_arch = "x86", target_arch = "x86_64"))
Continue execution until the next syscall, as with ptrace(PTRACE_SYSEMU, ...)
sysemu_step all(target_os = "linux", target_env = "gnu", any(target_arch = "x86", target_arch = "x86_64"))
Move the stopped tracee process forward by a single step or stop at the next syscall
as with ptrace(PTRACE_SYSEMU_SINGLESTEP, ...)
Sets the process as traceable, as with ptrace(PTRACE_TRACEME, ...)
write This function is unsafe to use
Writes a word into the processes memory at the given address