[PATCH] Fix MIPS n32/n64 compile error in syscall.c

David Daney ddaney at caviumnetworks.com
Tue Feb 9 19:03:27 UTC 2010

syscall.c will not build under mips-n32 or mips-n64.

In syscall_enter() there is a call to ptrace() with an undefined 
variable 'pid'.  This should be replaced with 'tcp->pid'.  Attached is a 
patch that fixes the issue for me.

Please apply if approved.


2010-02-09  David Daney  <ddaney at caviumnetworks.com>

	* syscall.c (syscall_enter): Pass tcp->pid to ptrace
	in MIPS-n32/MIPS-n64 case.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: syscall-c.patch
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20100209/ca8666c0/attachment.ksh>

More information about the Strace-devel mailing list