golang.org/x/sys@v0.9.0/unix/zptrace_mipsnn_linux.go (about) 1 // Code generated by linux/mkall.go generatePtracePair("mips", "mips64"). DO NOT EDIT. 2 3 //go:build linux && (mips || mips64) 4 // +build linux 5 // +build mips mips64 6 7 package unix 8 9 import "unsafe" 10 11 // PtraceRegsMips is the registers used by mips binaries. 12 type PtraceRegsMips struct { 13 Regs [32]uint64 14 Lo uint64 15 Hi uint64 16 Epc uint64 17 Badvaddr uint64 18 Status uint64 19 Cause uint64 20 } 21 22 // PtraceGetRegsMips fetches the registers used by mips binaries. 23 func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error { 24 return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout)) 25 } 26 27 // PtraceSetRegsMips sets the registers used by mips binaries. 28 func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error { 29 return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs)) 30 } 31 32 // PtraceRegsMips64 is the registers used by mips64 binaries. 33 type PtraceRegsMips64 struct { 34 Regs [32]uint64 35 Lo uint64 36 Hi uint64 37 Epc uint64 38 Badvaddr uint64 39 Status uint64 40 Cause uint64 41 } 42 43 // PtraceGetRegsMips64 fetches the registers used by mips64 binaries. 44 func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error { 45 return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout)) 46 } 47 48 // PtraceSetRegsMips64 sets the registers used by mips64 binaries. 49 func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error { 50 return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs)) 51 }