summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2016-05-12 16:56:30 +0000
committerDmitry V. Levin <ldv@altlinux.org>2016-05-13 01:39:41 +0000
commit846f617805d5ba2a3713af06918202b4e0a4f679 (patch)
treea03ddce1bbc56a5889d9ef87b9716d8dacbb5930 /process.c
parent1634de70b28ea381999f27b0dd086f90293d01a5 (diff)
downloadstrace-846f617805d5ba2a3713af06918202b4e0a4f679.tar.gz
ptrace: decode argument of PTRACE_GETEVENTMSG request
* process.c (SYS_FUNC(ptrace)): Print data argument of PTRACE_GETEVENTMSG request on exiting using printnum_ulong.
Diffstat (limited to 'process.c')
-rw-r--r--process.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/process.c b/process.c
index afac431a2..39eb21f96 100644
--- a/process.c
+++ b/process.c
@@ -208,6 +208,7 @@ SYS_FUNC(ptrace)
case PTRACE_PEEKTEXT:
case PTRACE_PEEKUSER:
#endif
+ case PTRACE_GETEVENTMSG:
case PTRACE_GETREGSET:
case PTRACE_GETSIGINFO:
case PTRACE_GETSIGMASK:
@@ -231,15 +232,18 @@ SYS_FUNC(ptrace)
printnum_ptr(tcp, data);
break;
#endif
+ case PTRACE_GETEVENTMSG:
+ printnum_ulong(tcp, data);
+ break;
+ case PTRACE_GETREGSET:
+ tprint_iov(tcp, /*len:*/ 1, data, /*as string:*/ 0);
+ break;
case PTRACE_GETSIGINFO:
printsiginfo_at(tcp, data);
break;
case PTRACE_GETSIGMASK:
print_sigset_addr_len(tcp, data, addr);
break;
- case PTRACE_GETREGSET:
- tprint_iov(tcp, /*len:*/ 1, data, /*as string:*/ 0);
- break;
}
}
return 0;