|
From: <sv...@va...> - 2008-08-28 20:35:22
|
Author: sewardj
Date: 2008-08-28 21:35:29 +0100 (Thu, 28 Aug 2008)
New Revision: 8560
Log:
Make this tool usable for the first time:
* disable lots of debug printing
* add a suppression which makes it not report ld-2.x.so poking
around during dynamic linking
Modified:
branches/SGCHECK/coregrind/m_debuginfo/debuginfo.c
branches/SGCHECK/exp-sgcheck/sg_main.c
branches/SGCHECK/glibc-2.X.supp.in
Modified: branches/SGCHECK/coregrind/m_debuginfo/debuginfo.c
===================================================================
--- branches/SGCHECK/coregrind/m_debuginfo/debuginfo.c 2008-08-28 19:29:29 UTC (rev 8559)
+++ branches/SGCHECK/coregrind/m_debuginfo/debuginfo.c 2008-08-28 20:35:29 UTC (rev 8560)
@@ -2551,8 +2551,9 @@
/* Ok, so collect it! */
tl_assert(var->name);
tl_assert(di->soname);
- VG_(printf)("XXXX %s %s %d\n", var->name,
- var->fileName?(HChar*)var->fileName:"??",var->lineNo);
+ if (0) VG_(printf)("XXXX %s %s %d\n", var->name,
+ var->fileName?(HChar*)var->fileName
+ :"??",var->lineNo);
VG_(memset)(&gb, 0, sizeof(gb));
gb.addr = res.word;
gb.szB = muw.w;
Modified: branches/SGCHECK/exp-sgcheck/sg_main.c
===================================================================
--- branches/SGCHECK/exp-sgcheck/sg_main.c 2008-08-28 19:29:29 UTC (rev 8559)
+++ branches/SGCHECK/exp-sgcheck/sg_main.c 2008-08-28 20:35:29 UTC (rev 8560)
@@ -1009,8 +1009,8 @@
for (i = 0; i < n; i++) {
GlobalBlock* gbp;
GlobalBlock* gb = VG_(indexXA)( gbs, i );
- VG_(printf)(" new Global size %2lu at %#lx: %s %s\n",
- gb->szB, gb->addr, gb->soname, gb->name );
+ if (0) VG_(printf)(" new Global size %2lu at %#lx: %s %s\n",
+ gb->szB, gb->addr, gb->soname, gb->name );
tl_assert(gb->szB > 0);
/* Make a persistent copy of each GlobalBlock, and add it
to the tree. */
@@ -1519,7 +1519,7 @@
static UWord ctr = 0;
Bool show = False;
- if (0 == (ctr++ & 0x1FFFFF)) show = True;
+ if (0 && 0 == (ctr++ & 0x1FFFFF)) show = True;
if (show) QCache__pp(cache, "before upd");
@@ -1766,8 +1766,10 @@
if (sb) stats__max_sitree_size = s;
if (gb) stats__max_gitree_size = g;
if (sb || gb)
- VG_(printf)("new max tree sizes: S size %ld, G size %ld\n",
- stats__max_sitree_size, stats__max_gitree_size );
+ VG_(message)(Vg_DebugMsg,
+ "exp-sgcheck: new max tree sizes: "
+ "StackTree %ld, GlobalTree %ld",
+ stats__max_sitree_size, stats__max_gitree_size );
}
} else {
caller->blocks_added_by_call = NULL;
@@ -2383,7 +2385,6 @@
static void pp_Error ( Error* err )
{
- const Bool show_raw_states = False;
XError *xe = (XError*)VG_(get_error_extra)(err);
switch (VG_(get_error_kind)(err)) {
Modified: branches/SGCHECK/glibc-2.X.supp.in
===================================================================
--- branches/SGCHECK/glibc-2.X.supp.in 2008-08-28 19:29:29 UTC (rev 8559)
+++ branches/SGCHECK/glibc-2.X.supp.in 2008-08-28 20:35:29 UTC (rev 8560)
@@ -222,3 +222,16 @@
obj:/lib/libpthread-0.10.so
fun:pthread_create
}
+
+##----------------------------------------------------------------------##
+##--- exp-sgcheck suppressions ---##
+##----------------------------------------------------------------------##
+
+{
+ ld-2.X poking around in god knows where
+ SGcheck:SorG
+ obj:/lib*/ld-@GLIBC_VERSION@*.so*
+ obj:/lib*/ld-@GLIBC_VERSION@*.so*
+ obj:/lib*/ld-@GLIBC_VERSION@*.so*
+ obj:/lib*/ld-@GLIBC_VERSION@*.so*
+}
Property changes on: branches/SGCHECK/glibc-2.X.supp.in
___________________________________________________________________
Name: svn:mergeinfo
-
|