From: Dmitry V. Levin Date: Thu, 12 May 2016 16:52:49 +0000 (+0000) Subject: ptrace: decode arguments of PTRACE_[GS]ETSIGMASK requests X-Git-Tag: v4.12~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1634de70b28ea381999f27b0dd086f90293d01a5;p=strace ptrace: decode arguments of PTRACE_[GS]ETSIGMASK requests * process.c (SYS_FUNC(ptrace)): Print arguments of PTRACE_GETSIGMASK and PTRACE_SETSIGMASK requests using print_sigset_addr_len. --- diff --git a/process.c b/process.c index a239ceb0..afac431a 100644 --- a/process.c +++ b/process.c @@ -197,6 +197,9 @@ SYS_FUNC(ptrace) case PTRACE_SETSIGINFO: printsiginfo_at(tcp, data); break; + case PTRACE_SETSIGMASK: + print_sigset_addr_len(tcp, data, addr); + break; case PTRACE_SETREGSET: tprint_iov(tcp, /*len:*/ 1, data, /*as string:*/ 0); break; @@ -207,6 +210,7 @@ SYS_FUNC(ptrace) #endif case PTRACE_GETREGSET: case PTRACE_GETSIGINFO: + case PTRACE_GETSIGMASK: if (verbose(tcp)) { /* print data on exiting syscall */ return 0; @@ -230,6 +234,9 @@ SYS_FUNC(ptrace) 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;