1 // Code generated by linux/mkall.go generatePtracePair(386, amd64). DO NOT EDIT.
10 // PtraceRegs386 is the registers used by 386 binaries.
11 type PtraceRegs386 struct {
31 // PtraceGetRegs386 fetches the registers used by 386 binaries.
32 func PtraceGetRegs386(pid int, regsout *PtraceRegs386) error {
33 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
36 // PtraceSetRegs386 sets the registers used by 386 binaries.
37 func PtraceSetRegs386(pid int, regs *PtraceRegs386) error {
38 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
41 // PtraceRegsAmd64 is the registers used by amd64 binaries.
42 type PtraceRegsAmd64 struct {
72 // PtraceGetRegsAmd64 fetches the registers used by amd64 binaries.
73 func PtraceGetRegsAmd64(pid int, regsout *PtraceRegsAmd64) error {
74 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
77 // PtraceSetRegsAmd64 sets the registers used by amd64 binaries.
78 func PtraceSetRegsAmd64(pid int, regs *PtraceRegsAmd64) error {
79 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))