diff options
| author | chenguoqi <chenguoqi@loongson.cn> | 2023-06-08 14:04:26 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-06-10 16:02:54 +0000 |
| commit | fafa4091abb4ed6de6ff4daef67ef1cf9db40923 (patch) | |
| tree | fc6ee31ac5f8fc6830c36356d5784dce3a4dd0f8 /src/runtime/asm_amd64.s | |
| parent | 82dc37c0d05c33c00b585664cba1c647bf8ac99e (diff) | |
| download | go-fafa4091abb4ed6de6ff4daef67ef1cf9db40923.tar.xz | |
syscall: implement Ptrace{Set,Get}Regs using PTRACE_{GET,SET}REGSET on all linux platforms
In the ptrace system call, most of the newer architectures (e.g. arm64,riscv64,loong64)
do not provide support for the command PTRACE_{GET, SET}REGS.
The Linux kernel 2.6.33-rc7[1] introduces support for the command PTRACE_{GET,SET}REGSET,
which exports different types of register sets depending on the NT_* types, completely
overriding the functionality provided by PTRACE_{GET,SET}REGS.
[1] https://lore.kernel.org/all/20100211195614.886724710@sbs-t61.sc.intel.com/
Fixes #60679.
Change-Id: I8c2671d64a7ecd654834740f4f1e1e50c00edcae
Reviewed-on: https://go-review.googlesource.com/c/go/+/501756
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/runtime/asm_amd64.s')
0 files changed, 0 insertions, 0 deletions
