From: Bart Van Assche Date: Sun, 26 Jul 2009 15:46:47 +0000 (+0000) Subject: Added the macro DRD_STOP_IGNORING_VAR(). X-Git-Tag: svn/VALGRIND_3_5_0~233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b7cbb23e0b194e06fcb8b83ab39c02a4311143a;p=thirdparty%2Fvalgrind.git Added the macro DRD_STOP_IGNORING_VAR(). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10615 --- diff --git a/drd/drd.h b/drd/drd.h index 008a807566..b42785805e 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. @@ -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) {