1// Code generated by linux/mkall.go generatePtracePair(mipsle, mips64le). DO NOT EDIT. 2 3// +build linux 4// +build mipsle mips64le 5 6package unix 7 8import "unsafe" 9 10// PtraceRegsMipsle is the registers used by mipsle binaries. 11type PtraceRegsMipsle struct { 12 Regs [32]uint64 13 Lo uint64 14 Hi uint64 15 Epc uint64 16 Badvaddr uint64 17 Status uint64 18 Cause uint64 19} 20 21// PtraceGetRegsMipsle fetches the registers used by mipsle binaries. 22func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error { 23 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) 24} 25 26// PtraceSetRegsMipsle sets the registers used by mipsle binaries. 27func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error { 28 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) 29} 30 31// PtraceRegsMips64le is the registers used by mips64le binaries. 32type PtraceRegsMips64le struct { 33 Regs [32]uint64 34 Lo uint64 35 Hi uint64 36 Epc uint64 37 Badvaddr uint64 38 Status uint64 39 Cause uint64 40} 41 42// PtraceGetRegsMips64le fetches the registers used by mips64le binaries. 43func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error { 44 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) 45} 46 47// PtraceSetRegsMips64le sets the registers used by mips64le binaries. 48func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error { 49 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) 50} 51