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

David Daney ddaney at caviumnetworks.com
Tue Feb 9 19:07:04 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.
> Thanks,
> 2010-02-09  David Daney  <ddaney at caviumnetworks.com>
> 	* syscall.c (syscall_enter): Pass tcp->pid to ptrace
> 	in MIPS-n32/MIPS-n64 case.

Actually I am not sure what the protocol is.  If you need it here is a:

Signed-off-by: David Daney <ddaney at caviumnetworks.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: syscall-c.patch
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20100209/d356689e/attachment.ksh>

More information about the Strace-devel mailing list