Skip to content

proposal: x/sys/unix: PtraceGetRegs should allow getting non-default registers #62333

@mitar

Description

@mitar

Currently unix.PtraceGetRegs only gets default set of registers, NT_PRSTATUS. It would be great if it would be possible to also get other sets. Probably we need another function for this. Example is that on arm, one needs to use NT_ARM_SYSTEM_CALL to get the system call register.

Similarly for setting registers.

Because ptracePtr is private, one has to duplicate it if you want to create a custom ptrace call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions