]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgo, syscall: fix ptrace implementation on MIPS
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jun 2017 21:42:41 +0000 (21:42 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jun 2017 21:42:41 +0000 (21:42 +0000)
commit6b49e67f59a7795d09cc945a2dee0cd3ba5c81a4
tree51c565ff797d0d2f7799adc97742845805f0a8a1
parent0d1ebcde6bd26dcb20459ca8708e77a073c6ea80
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@249472 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/config.h.in
libgo/configure
libgo/configure.ac
libgo/go/syscall/syscall_linux_mipsx.go
libgo/mksysinfo.sh
libgo/sysinfo.c