Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com> Update structs Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
14 lines
267 B
Go
14 lines
267 B
Go
//go:build linux && mips64le
|
|
|
|
package proot
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
func (proot *Proot) getTrace(pid int) (*unix.PtraceRegs, error) {
|
|
var regs unix.PtraceRegs
|
|
if err := unix.PtraceGetRegs(pid, ®s); err != nil {
|
|
return nil, err
|
|
}
|
|
return ®s, nil
|
|
}
|