]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Removed cross-tool dependency on helgrind/helgrind.h.
authorBart Van Assche <bvanassche@acm.org>
Wed, 11 Mar 2009 18:51:22 +0000 (18:51 +0000)
committerBart Van Assche <bvanassche@acm.org>
Wed, 11 Mar 2009 18:51:22 +0000 (18:51 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9361

drd/drd.h
drd/drd_clientreq.c

index f04f62385d2a4ab5749f6480c574f65ab239e41b..76c60b5862a52196faa33cb2029acf4b26387c33 100644 (file)
--- a/drd/drd.h
+++ b/drd/drd.h
@@ -93,6 +93,12 @@ enum
   /* To ask the drd tool to stop tracing accesses to the specified range. */
   VG_USERREQ__DRD_STOP_TRACE_ADDR,
   /* args: Addr, SizeT. */
+
+  /* To ask the drd tool to discard all information about memory accesses */
+  /* and client objects for the specified range. This client request is   */
+  /* binary compatible with the similarly named Helgrind client request.  */
+  VG_USERREQ__DRD_CLEAN_MEMORY = VG_USERREQ_TOOL_BASE('H','G'),
+  /* args: Addr, SizeT. */
 };
 
 
index 281d1a69eb51dc9dec8e5527e62061207a96e21e..57a51393f4f4988977fb6db460290f4724fc110c 100644 (file)
@@ -31,7 +31,6 @@
 #include "drd_semaphore.h"
 #include "drd_suppression.h"      // drd_start_suppression()
 #include "drd_thread.h"
-#include "../helgrind/helgrind.h"
 #include "pub_tool_basics.h"      // Bool
 #include "pub_tool_debuginfo.h"   // VG_(describe_IP)()
 #include "pub_tool_libcassert.h"
@@ -369,7 +368,7 @@ Bool DRD_(handle_client_request)(ThreadId vg_tid, UWord* arg, UWord* ret)
     DRD_(thread_leave_synchr)(drd_tid);
     break;
 
-  case VG_USERREQ__HG_CLEAN_MEMORY:
+  case VG_USERREQ__DRD_CLEAN_MEMORY:
     if (arg[2] > 0)
       DRD_(clean_memory)(arg[1], arg[2]);
     break;