Function nix::sys::ptrace::getregs

source ยท
pub fn getregs(pid: Pid) -> Result<user_regs_struct>
Expand description

Get user registers, as with ptrace(PTRACE_GETREGS, ...)

Note that since PTRACE_GETREGS are not available on all platforms (as in ptrace(2)), ptrace(PTRACE_GETREGSET, pid, NT_PRSTATUS, ...) is used instead to achieve the same effect on aarch64 and riscv64.