Author: bart
Date: 2008-02-29 19:19:39 +0000 (Fri, 29 Feb 2008)
New Revision: 7510
Log:
Removed debugging code.
Modified:
trunk/exp-drd/drd_clientobj.c
Modified: trunk/exp-drd/drd_clientobj.c
===================================================================
--- trunk/exp-drd/drd_clientobj.c 2008-02-29 19:17:28 UTC (rev 7509)
+++ trunk/exp-drd/drd_clientobj.c 2008-02-29 19:19:39 UTC (rev 7510)
@@ -104,11 +104,7 @@
tl_assert(a1 < a2 && a1 + 4096 > a2);
tl_assert(! drd_clientobj_present(a1, a2));
tl_assert(VG_(OSetGen_Lookup)(s_clientobj, &a1) == 0);
-#if 0
- VG_(message)(Vg_DebugMsg,
- "registering client obj [0x%lx,0x%lx[ of type %d",
- a1, a2, t);
-#endif
+
p = VG_(OSetGen_AllocNode)(s_clientobj, sizeof(*p));
VG_(memset)(p, 0, sizeof(*p));
p->any.a1 = a1;
@@ -129,10 +125,6 @@
p = VG_(OSetGen_Remove)(s_clientobj, &addr);
if (p)
{
-#if 0
- VG_(message)(Vg_DebugMsg, "removing client obj [0x%lx,0x%lx[ of type %d",
- p->any.a1, p->any.a2, p->any.type);
-#endif
tl_assert(VG_(OSetGen_Lookup)(s_clientobj, &addr) == 0);
drd_finish_suppression(p->any.a1, p->any.a2);
tl_assert(p->any.cleanup);
@@ -148,10 +140,6 @@
Addr removed_at;
DrdClientobj* p;
-#if 0
- VG_(message)(Vg_DebugMsg, "drd_clientobj_stop_using_mem [0x%lx,0x%lx[",
- a1, a2);
-#endif
tl_assert(s_clientobj);
VG_(OSetGen_ResetIter)(s_clientobj);
p = VG_(OSetGen_Next)(s_clientobj);
@@ -160,14 +148,10 @@
if ((a1 <= p->any.a1 && p->any.a1 < a2)
|| (a1 < p->any.a2 && p->any.a2 <= a2))
{
-#if 0
- VG_(message)(Vg_DebugMsg, "drd_clientobj_stop_using_mem [0x%lx,0x%lx[",
- a1, a2);
-#endif
removed_at = p->any.a1;
drd_clientobj_remove(p->any.a1, p->any.type);
- /* The above call removes an element from the oset and hence invalidates
*/
- /* the iterator. Set the iterator back.
*/
+ /* The above call removes an element from the oset and hence */
+ /* invalidates the iterator. Set the iterator back. */
VG_(OSetGen_ResetIter)(s_clientobj);
while ((p = VG_(OSetGen_Next)(s_clientobj)) != 0
&& p->any.a1 <= removed_at)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers