]> granicus.if.org Git - strace/commitdiff
ptrace: print data argument of PTRACE_SEIZE et al requests as flags
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 12 May 2016 15:53:28 +0000 (15:53 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 12 May 2016 15:53:28 +0000 (15:53 +0000)
* process.c (SYS_FUNC(ptrace)): Print data argument of
PTRACE_SEIZE and PTRACE_OLDSETOPTIONS as PTRACE_O_* flags.

process.c

index b61d354676d750e2317c4e83162671f79d61441d..5133865b93252a0a61254ad6fba50f3d46bc98da 100644 (file)
--- a/process.c
+++ b/process.c
@@ -183,7 +183,11 @@ SYS_FUNC(ptrace)
 #endif
                        printsignal(data);
                        break;
+               case PTRACE_SEIZE:
                case PTRACE_SETOPTIONS:
+#ifdef PTRACE_OLDSETOPTIONS
+               case PTRACE_OLDSETOPTIONS:
+#endif
                        printflags(ptrace_setoptions_flags, data, "PTRACE_O_???");
                        break;
                case PTRACE_SETSIGINFO: