pub fn setregs(pid: Pid, regs: user_regs_struct) -> Result<()>
Expand description
Set user registers, as with ptrace(PTRACE_SETREGS, ...)
Note that since PTRACE_SETREGS
are not available on all platforms (as in ptrace(2)),
ptrace(PTRACE_SETREGSET, pid, NT_PRSTATUS, ...)
is used instead to achieve the same effect
on aarch64 and riscv64.