diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go')
| -rw-r--r-- | vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go b/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go new file mode 100644 index 0000000..2d2de5d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | // Code generated by linux/mkall.go generatePtracePair("mipsle", "mips64le"). DO NOT EDIT. | ||
| 2 | |||
| 3 | //go:build linux && (mipsle || mips64le) | ||
| 4 | |||
| 5 | package unix | ||
| 6 | |||
| 7 | import "unsafe" | ||
| 8 | |||
| 9 | // PtraceRegsMipsle is the registers used by mipsle binaries. | ||
| 10 | type PtraceRegsMipsle struct { | ||
| 11 | Regs [32]uint64 | ||
| 12 | Lo uint64 | ||
| 13 | Hi uint64 | ||
| 14 | Epc uint64 | ||
| 15 | Badvaddr uint64 | ||
| 16 | Status uint64 | ||
| 17 | Cause uint64 | ||
| 18 | } | ||
| 19 | |||
| 20 | // PtraceGetRegsMipsle fetches the registers used by mipsle binaries. | ||
| 21 | func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error { | ||
| 22 | return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout)) | ||
| 23 | } | ||
| 24 | |||
| 25 | // PtraceSetRegsMipsle sets the registers used by mipsle binaries. | ||
| 26 | func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error { | ||
| 27 | return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs)) | ||
| 28 | } | ||
| 29 | |||
| 30 | // PtraceRegsMips64le is the registers used by mips64le binaries. | ||
| 31 | type PtraceRegsMips64le struct { | ||
| 32 | Regs [32]uint64 | ||
| 33 | Lo uint64 | ||
| 34 | Hi uint64 | ||
| 35 | Epc uint64 | ||
| 36 | Badvaddr uint64 | ||
| 37 | Status uint64 | ||
| 38 | Cause uint64 | ||
| 39 | } | ||
| 40 | |||
| 41 | // PtraceGetRegsMips64le fetches the registers used by mips64le binaries. | ||
| 42 | func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error { | ||
| 43 | return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout)) | ||
| 44 | } | ||
| 45 | |||
| 46 | // PtraceSetRegsMips64le sets the registers used by mips64le binaries. | ||
| 47 | func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error { | ||
| 48 | return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs)) | ||
| 49 | } | ||