commit | 200370419bb3540e50e9333a3359af4ca681d3bf | [log] [tgz] |
---|---|---|
author | David Daney <ddaney@caviumnetworks.com> | Tue Feb 09 21:22:30 2010 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Tue Feb 09 21:37:50 2010 +0000 |
tree | 68718fe65b33ad03550d28ad8c6c275cf7ae9398 | |
parent | c8c6698ef7cde83a496b273672a51ec2a8f14fb3 [diff] [blame] |
Fix MIPS N32/N64 compile error * syscall.c [LINUX_MIPSN32 || LINUX_MIPSN64] (syscall_enter): Pass tcp->pid to ptrace().
diff --git a/syscall.c b/syscall.c index 4f46bf6..a56d7df 100644 --- a/syscall.c +++ b/syscall.c
@@ -2057,7 +2057,7 @@ else nargs = tcp->u_nargs = MAX_ARGS; - if (ptrace (PTRACE_GETREGS, pid, NULL, (long) ®s) < 0) + if (ptrace (PTRACE_GETREGS, tcp->pid, NULL, (long) ®s) < 0) return -1; for(i = 0; i < nargs; i++) {