From: Denys Vlasenko Date: Fri, 21 Jun 2013 14:33:56 +0000 (+0200) Subject: Show PTRACE_EVENT_STOP correctly in debug output X-Git-Tag: v4.9~227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e020c0f4b054a030ce8922906cdc217c4b2faf4;p=strace Show PTRACE_EVENT_STOP correctly in debug output Signed-off-by: Denys Vlasenko --- diff --git a/strace.c b/strace.c index ab971b51..f7678313 100644 --- a/strace.c +++ b/strace.c @@ -2029,10 +2029,13 @@ trace(void) [PTRACE_EVENT_VFORK_DONE] = "VFORK_DONE", [PTRACE_EVENT_EXEC] = "EXEC", [PTRACE_EVENT_EXIT] = "EXIT", + /* [PTRACE_EVENT_STOP (=128)] would make biggish array */ }; const char *e; if (event < ARRAY_SIZE(event_names)) e = event_names[event]; + else if (event == PTRACE_EVENT_STOP) + e = "STOP"; else { sprintf(buf, "?? (%u)", event); e = buf;