From ea00900a85ae0dc09d58b73b41309794855811a3 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 24 Mar 2015 01:59:07 +0000 Subject: [PATCH] get_scno: add diagnostics for invalid syscall numbers * syscall.c (get_scno): Print a debug level message for !SCNO_IS_VALID syscall numbers. --- syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syscall.c b/syscall.c index 435dc808..d54d8b66 100644 --- a/syscall.c +++ b/syscall.c @@ -1268,6 +1268,9 @@ get_scno(struct tcb *tcp) }; tcp->s_ent = &unknown; tcp->qual_flg = UNDEFINED_SCNO | QUAL_RAW | DEFAULT_QUAL_FLAGS; + if (debug_flag) + fprintf(stderr, "pid %d invalid syscall %ld\n", + tcp->pid, scno); } return 1; } -- 2.50.1