Fix MIPS N32/N64 compile error

* syscall.c [LINUX_MIPSN32 || LINUX_MIPSN64] (syscall_enter): Pass
tcp->pid to ptrace().
This commit is contained in:
David Daney 2010-02-09 21:22:30 +00:00 committed by Dmitry V. Levin
parent c8c6698ef7
commit 200370419b

View File

@ -2057,7 +2057,7 @@ syscall_enter(struct tcb *tcp)
else
nargs = tcp->u_nargs = MAX_ARGS;
if (ptrace (PTRACE_GETREGS, pid, NULL, (long) &regs) < 0)
if (ptrace (PTRACE_GETREGS, tcp->pid, NULL, (long) &regs) < 0)
return -1;
for(i = 0; i < nargs; i++) {