summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2011-02-19 00:02:27 +0000
committerDmitry V. Levin <ldv@altlinux.org>2011-02-19 00:02:27 +0000
commit9fdbee6dea6543a1a4a4183403b6e9c436abcb04 (patch)
tree4a5a622958b50af0f3bc7477e4720ab5b854d26c
parentbd13645efb3094267ce95920b6941cfcac757036 (diff)
downloadstrace-9fdbee6dea6543a1a4a4183403b6e9c436abcb04.tar.gz
Fix raw exit_group(2) decoding
* syscall.c (trace_syscall_entering): Check for sys_exit instead of SYS_exit to handle exit_group(2) as well as _exit(2).
-rw-r--r--syscall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/syscall.c b/syscall.c
index 79d3b4a38..e66ac0a95 100644
--- a/syscall.c
+++ b/syscall.c
@@ -2707,7 +2707,8 @@ trace_syscall_entering(struct tcb *tcp)
else
tprintf("%s(", sysent[tcp->scno].sys_name);
if (tcp->scno >= nsyscalls || tcp->scno < 0 ||
- ((qual_flags[tcp->scno] & QUAL_RAW) && tcp->scno != SYS_exit))
+ ((qual_flags[tcp->scno] & QUAL_RAW) &&
+ sysent[tcp->scno].sys_func != sys_exit))
sys_res = printargs(tcp);
else
sys_res = (*sysent[tcp->scno].sys_func)(tcp);