Added the macro DRD_STOP_IGNORING_VAR().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10615 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/drd/drd.h b/drd/drd.h
index 008a807..b427858 100644
--- 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.
@@ -372,6 +375,14 @@
}
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)
{
int res;