mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
Since arm64 GNU/Linux version 2.6.34, PTRACE_GETREGS was replaced by PTRACE_GETREGSET, in order to get or set the general purpose and floating-point register values, PTRACE_GETREGSET/PTRACE_SETREGSET request type and a proper "NT_XXX" constant values should be used. For the sake of not breaking the existing API, we added two functions PtraceGetRegSetArm64 and PtraceSetRegSetArm64, they take an additional argument "addr", and use PTRACE_GETREGSET and PTRACE_SETREGSET request types respectively. Change-Id: I14c55733e15cea4b7d775187b1018fcb2880d6a9 Reviewed-on: https://go-review.googlesource.com/c/sys/+/204418 Run-TryBot: eric fang <eric.fang@arm.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>