Files
go-proot/proot_linux_arm64.go
Matheus Sampaio Queiroga f941c61928 Update structs
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>

Update structs

Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2025-03-27 18:31:12 -03:00

14 lines
277 B
Go

//go:build (linux || android) && arm64
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, &regs); err != nil {
return nil, err
}
return &regs, nil
}