libgo, syscall: fix ptrace implementation on MIPS
commit5f3fb9c59f53bfb3af9d87723bbb3b130772a4ac
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jun 2017 21:46:03 +0000 (21 21:46 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jun 2017 21:46:03 +0000 (21 21:46 +0000)
treec2a5a378324e461624f45283c61d12f031767854
parent6b49e67f59a7795d09cc945a2dee0cd3ba5c81a4
libgo, syscall: fix ptrace implementation on MIPS

    On MIPS, the correct structure for PtraceRegs is 'struct pt_regs' which
    is declared in linux/ptrace.h. Previously no PtraceRegs structure was
    created on MIPS because 'struct user_regs_struct' doesn't exist there.

    Fallback to using pt_regs when the PtraceRegs structure is generated in
    mksysinfo.sh, then adjust syscall_linux_mipsx.go to read the program
    counter from the correct field.

    In addition, implement PtraceGetRegs and PtraceSetRegs on all 3 ABI
    variants.

    syscall_linux_mips64x.go can now be removed since the ptrace code on
    all 3 ABIs is identical.

    Reviewed-on: https://go-review.googlesource.com/46150

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249473 138bc75d-0d04-0410-961f-82ee72b054a4
libgo/go/syscall/syscall_linux_mips64x.go [deleted file]