On Fri, Oct 18, 2019 at 4:44 AM eric fang <eric.f...@arm.com> wrote: > > Hi Ian, go-delve for arm64 (https://github.com/go-delve/delve/issues/1715) > also encountered this problem, I want to fix this problem. > unix.PtraceGetRegsArm64 may be not work on Linux arm64 since version 2.6.34, > because PTRACE_GETREGS has been replaced with PTRACE_GETREGSET, no longer > support PTRACE_GETREGS. PTRACE_GETREGSET needs to work with different NT_XXX > values, and the current API unix.PtraceGetRegSetArm64 obviously does not have > such scalability. So I think we may need to add a new API, such as > unix.PtraceGetRegSetArm64(pid int, addr int, regsout *PtraceRegsArm64). What > do you think?
It's not clear to me that we support arm64 GNU/Linux for versions before 2.6.34 at all, so perhaps we should just change the existing function to use GETREGSET and take an additional argument. This will require changing the generating program in x/sys/unix/linux. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUMDtApN0y5QXJDnQ%3D6o1CMJpTDV1nJmJWZB2MGyjXq5g%40mail.gmail.com.