From: Dmitry V. Levin <ldv@altlinux.org> Date: Thu, 12 May 2016 15:38:35 +0000 (+0000) Subject: ptrace: fix printing addr argument of PTRACE_GETSIGMASK et al requests X-Git-Tag: v4.12~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a5cd34e34b662e4c2097e307d504712ddc05f73;p=strace ptrace: fix printing addr argument of PTRACE_GETSIGMASK et al requests For PTRACE_GETSIGMASK and PTRACE_SETSIGMASK requests, addr argument contains the size of the buffer pointed to by data argument. For PTRACE_SECCOMP_GET_FILTER request, addr argument contains an offset counter. * process.c (SYS_FUNC(ptrace)): Print addr argument of PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and PTRACE_SECCOMP_GET_FILTER requests using %lu format. --- diff --git a/process.c b/process.c index e735bc36..3f10a891 100644 --- a/process.c +++ b/process.c @@ -117,6 +117,11 @@ SYS_FUNC(ptrace) tprints(", "); printxval(nt_descriptor_types, addr, "NT_???"); break; + case PTRACE_GETSIGMASK: + case PTRACE_SETSIGMASK: + case PTRACE_SECCOMP_GET_FILTER: + tprintf(", %lu", addr); + break; #if defined SPARC || defined SPARC64 case PTRACE_GETREGS: case PTRACE_SETREGS: