Constant nc::types::PTRACE_GETREGSET[][src]

pub const PTRACE_GETREGSET: i32 = 0x4204;
Expand description

Generic ptrace interface that exports the architecture specific regsets using the corresponding NT_* types (which are also used in the core dump). Please note that the NT_PRSTATUS note type in a core dump contains a full ‘struct elf_prstatus’. But the user_regset for NT_PRSTATUS contains just the elf_gregset_t that is the pr_reg field of ‘struct elf_prstatus’. For all the other user_regset flavors, the user_regset layout and the ELF core dump note payload are exactly the same layout.

This interface usage is as follows: struct iovec iov = { buf, len};

ret = ptrace(PTRACE_GETREGSET/PTRACE_SETREGSET, pid, NT_XXX_TYPE, &iov);

On the successful completion, iov.len will be updated by the kernel, specifying how much the kernel has written/read to/from the user’s iov.buf.