From: Dmitry V. Levin Date: Thu, 12 May 2016 16:56:30 +0000 (+0000) Subject: ptrace: decode argument of PTRACE_GETEVENTMSG request X-Git-Tag: v4.12~172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=846f617805d5ba2a3713af06918202b4e0a4f679;p=strace ptrace: decode argument of PTRACE_GETEVENTMSG request * process.c (SYS_FUNC(ptrace)): Print data argument of PTRACE_GETEVENTMSG request on exiting using printnum_ulong. --- diff --git a/process.c b/process.c index afac431a..39eb21f9 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;