This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r249472 - in /trunk: gcc/go/gofrontend/MERGE li...
- From: ian at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 21 Jun 2017 21:42:42 -0000
- Subject: r249472 - in /trunk: gcc/go/gofrontend/MERGE li...
Author: ian
Date: Wed Jun 21 21:42:41 2017
New Revision: 249472
URL: https://gcc.gnu.org/viewcvs?rev=249472&root=gcc&view=rev
Log:
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
Modified:
trunk/gcc/go/gofrontend/MERGE
trunk/libgo/config.h.in
trunk/libgo/configure
trunk/libgo/configure.ac
trunk/libgo/go/syscall/syscall_linux_mipsx.go
trunk/libgo/mksysinfo.sh
trunk/libgo/sysinfo.c