diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2016-05-12 16:56:30 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2016-05-13 01:39:41 +0000 |
commit | 846f617805d5ba2a3713af06918202b4e0a4f679 (patch) | |
tree | a03ddce1bbc56a5889d9ef87b9716d8dacbb5930 /process.c | |
parent | 1634de70b28ea381999f27b0dd086f90293d01a5 (diff) | |
download | strace-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.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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; |