...
Source file src/cmd/vendor/golang.org/x/sys/unix/zptracemips_linux.go
1
2
3
4
5
6 package unix
7
8 import "unsafe"
9
10
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
22 func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error {
23 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
24 }
25
26
27 func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error {
28 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
29 }
30
31
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
43 func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error {
44 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
45 }
46
47
48 func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error {
49 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
50 }
51
View as plain text