]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added the macro DRD_STOP_IGNORING_VAR().
authorBart Van Assche <bvanassche@acm.org>
Sun, 26 Jul 2009 15:46:47 +0000 (15:46 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 26 Jul 2009 15:46:47 +0000 (15:46 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10615

drd/drd.h

index 008a807566ff0cbae723ad0e05eafa3525584749..b42785805e117b935c27ee6bb1bd998c744a4b7f 100644 (file)
--- a/drd/drd.h
+++ b/drd/drd.h
@@ -78,6 +78,9 @@
 /** Tell DRD not to complain about data races for the specified variable. */
 #define DRD_IGNORE_VAR(x) DRDCL_(ignore_range)(&(x), sizeof(x))
 
+/** Tell DRD to no longer ignore data races for the specified variable. */
+#define DRD_STOP_IGNORING_VAR(x) DRDCL_(ignore_range)(&(x), sizeof(x))
+
 /**
  * Tell DRD to trace all memory accesses on the specified variable. 
  * until the memory that was allocated for the variable is freed.
@@ -371,6 +374,14 @@ void DRDCL_(ignore_range)(const void* const addr, const int size)
                               addr, size, 0, 0, 0);
 }
 
+static __inline__
+void DRDCL_(stop_ignoring_range)(const void* const addr, const int size)
+{
+   int res;
+   VALGRIND_DO_CLIENT_REQUEST(res, 0, VG_USERREQ__DRD_FINISH_SUPPRESSION,
+                              addr, size, 0, 0, 0);
+}
+
 static __inline__
 void DRDCL_(trace_range)(const void* const addr, const int size)
 {