|
From: <sv...@va...> - 2011-09-26 20:21:01
|
Author: sewardj
Date: 2011-09-26 21:16:15 +0100 (Mon, 26 Sep 2011)
New Revision: 12051
Log:
Pretty up the debugging hack that allows printing of stack traces
for selected syscalls.
Modified:
trunk/coregrind/m_syswrap/syswrap-main.c
Modified: trunk/coregrind/m_syswrap/syswrap-main.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-main.c 2011-09-26 20:15:07 UTC (rev 12050)
+++ trunk/coregrind/m_syswrap/syswrap-main.c 2011-09-26 20:16:15 UTC (rev 12051)
@@ -1307,9 +1307,10 @@
/* It's sometimes useful, as a crude debugging hack, to get a
stack trace at each (or selected) syscalls. */
- if (0 /* sysno == __NR_mmap */) {
+ if (0 && sysno == __NR_ioctl) {
+ VG_(umsg)("\nioctl:\n");
+ VG_(get_and_pp_StackTrace)(tid, 10);
VG_(umsg)("\n");
- VG_(get_and_pp_StackTrace)(tid, 10);
}
# if defined(VGO_darwin)
|