blob: f65d0096c092d6a2ce8df29a0e59fcb8c5d497b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- strace-4.5.19/syscall.c.orig 2009-11-24 18:33:03.000000000 +0800
+++ strace-4.5.19/syscall.c 2009-11-24 18:33:10.000000000 +0800
@@ -2035,7 +2035,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++) {
|