From: Julian Seward Date: Mon, 26 Sep 2011 20:16:15 +0000 (+0000) Subject: Pretty up the debugging hack that allows printing of stack traces X-Git-Tag: svn/VALGRIND_3_7_0~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efc3e2cef5876a4583a999094786d89d9ca5e994;p=thirdparty%2Fvalgrind.git Pretty up the debugging hack that allows printing of stack traces for selected syscalls. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12051 --- diff --git a/coregrind/m_syswrap/syswrap-main.c b/coregrind/m_syswrap/syswrap-main.c index 0daa6dd1dc..78ccef0f1b 100644 --- a/coregrind/m_syswrap/syswrap-main.c +++ b/coregrind/m_syswrap/syswrap-main.c @@ -1307,9 +1307,10 @@ void VG_(client_syscall) ( ThreadId tid, UInt trc ) /* It's sometimes useful, as a crude debugging hack, to get a stack trace at each (or selected) syscalls. */ - if (0 /* sysno == __NR_mmap */) { - VG_(umsg)("\n"); + if (0 && sysno == __NR_ioctl) { + VG_(umsg)("\nioctl:\n"); VG_(get_and_pp_StackTrace)(tid, 10); + VG_(umsg)("\n"); } # if defined(VGO_darwin)