]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Pretty up the debugging hack that allows printing of stack traces
authorJulian Seward <jseward@acm.org>
Mon, 26 Sep 2011 20:16:15 +0000 (20:16 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 26 Sep 2011 20:16:15 +0000 (20:16 +0000)
for selected syscalls.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12051

coregrind/m_syswrap/syswrap-main.c

index 0daa6dd1dcfd15f870e1fb41d6705b2eaa3581ce..78ccef0f1b7f22c15782b594727034eb4bbfb565 100644 (file)
@@ -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)