.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / sys@v0.0.0-20210124154548-22da62e12c0c / unix / zptrace_mipsnn_linux.go
1 // Code generated by linux/mkall.go generatePtracePair("mips", "mips64"). DO NOT EDIT.
2
3 // +build linux
4 // +build mips mips64
5
6 package unix
7
8 import "unsafe"
9
10 // PtraceRegsMips is the registers used by mips binaries.
11 type PtraceRegsMips 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 // PtraceGetRegsMips fetches the registers used by mips binaries.
22 func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error {
23         return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
24 }
25
26 // PtraceSetRegsMips sets the registers used by mips binaries.
27 func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error {
28         return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
29 }
30
31 // PtraceRegsMips64 is the registers used by mips64 binaries.
32 type PtraceRegsMips64 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 // PtraceGetRegsMips64 fetches the registers used by mips64 binaries.
43 func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error {
44         return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
45 }
46
47 // PtraceSetRegsMips64 sets the registers used by mips64 binaries.
48 func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error {
49         return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
50 }