diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2011-02-19 00:02:27 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2011-02-19 00:02:27 +0000 |
commit | 9fdbee6dea6543a1a4a4183403b6e9c436abcb04 (patch) | |
tree | 4a5a622958b50af0f3bc7477e4720ab5b854d26c | |
parent | bd13645efb3094267ce95920b6941cfcac757036 (diff) | |
download | strace-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |