mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-28 04:46:44 -04:00
unix: use SYS_PTRACE in generated ptracePtr
CL 469835 broke the syscall wrapper generation on linux and freebsd by generating a wrapper for the inexistent SYS_PTRACE_PTR syscall. The ptracePtr added by CL 469835 correctly uses SYS_PTRACE, likely because it was manually edited in that CL. However, the incorrect SYS_PTRACE_PTR syscall is used when regenerating the syscall wrappers. Change-Id: I270d66511f926d30a9d347930e977a026e033998 Reviewed-on: https://go-review.googlesource.com/c/sys/+/470175 Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
committed by
Gopher Robot
parent
71a906ea0c
commit
a3b23cc77e
@@ -377,8 +377,10 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), addr, uintptr(data), 0, 0)
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user