[syscall_linux,go] doesn't have Ptrace API support for ARM64 architecture

40 views
Skip to first unread message

oss...@puresoftware.com

unread,
Oct 15, 2019, 8:53:26 AM10/15/19
to golang-nuts
Hi,

I am working on delve (go debugger)  to provide support for ARM64 platform but  syscall_linux,go doesn't support ARM64 platform.
for getting reg values through Ptrace, we added following code in syscall_linux,go ..

ptrace(PTRACE_GETREGSET, pid, uintptr(elf.NT_PRSTATUS), uintptr(unsafe.Pointer(&iovec)))


can anyone suggest if i need to add support for ARM64 or is there any other method to get DWARF values on ARM64 platform ..


Disclaimer -The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. In such instances you are further prohibited from reproducing, disclosing, distributing or taking any action in reliance on it.As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email.

Ian Lance Taylor

unread,
Oct 15, 2019, 10:36:18 AM10/15/19
to oss...@puresoftware.com, golang-nuts
On Tue, Oct 15, 2019 at 5:53 AM <oss...@puresoftware.com> wrote:
>
> I am working on delve (go debugger) to provide support for ARM64 platform but syscall_linux,go doesn't support ARM64 platform.
> for getting reg values through Ptrace, we added following code in syscall_linux,go ..
>
> ptrace(PTRACE_GETREGSET, pid, uintptr(elf.NT_PRSTATUS), uintptr(unsafe.Pointer(&iovec)))
>
>
> can anyone suggest if i need to add support for ARM64 or is there any other method to get DWARF values on ARM64 platform ..

The syscall package is more or less frozen. Look at
golang.org/x/sys/unix instead, which does have the function
PtraceGetRegsArm64.

Ian
Reply all
Reply to author
Forward
0 new messages