mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
vendor: fix arm build for golang.org/x/sys/unix/zptrace_armnn_linux.go
This commit is contained in:
parent
c217a53c35
commit
9442e619ea
1 changed files with 2 additions and 2 deletions
4
vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
generated
vendored
|
@ -42,12 +42,12 @@ func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error {
|
|||
|
||||
// PtraceGetRegSetArm64 fetches the registers used by arm64 binaries.
|
||||
func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error {
|
||||
iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))}
|
||||
iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint32(unsafe.Sizeof(*regsout))}
|
||||
return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec)))
|
||||
}
|
||||
|
||||
// PtraceSetRegSetArm64 sets the registers used by arm64 binaries.
|
||||
func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error {
|
||||
iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))}
|
||||
iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint32(unsafe.Sizeof(*regs))}
|
||||
return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec)))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue