]> granicus.if.org Git - strace/commitdiff
ptrace: fix printing addr argument of PTRACE_GETSIGMASK et al requests
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 12 May 2016 15:38:35 +0000 (15:38 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 12 May 2016 15:38:35 +0000 (15:38 +0000)
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.

process.c

index e735bc36982415447797cf711389889a825a9137..3f10a8916b7041e9eb275bb2c0e44dfd91b1d412 100644 (file)
--- 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: