]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Made ANNOTATE_HAPPENS_BEFORE()/_AFTER() binary compatible with Helgrind.
authorBart Van Assche <bvanassche@acm.org>
Fri, 14 Aug 2009 13:25:38 +0000 (13:25 +0000)
committerBart Van Assche <bvanassche@acm.org>
Fri, 14 Aug 2009 13:25:38 +0000 (13:25 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10814

drd/drd.h
drd/tests/Makefile.am
drd/tests/annotate_hbefore.stderr.exp [new file with mode: 0644]
drd/tests/annotate_hbefore.vgtest [new file with mode: 0644]

index b42785805e117b935c27ee6bb1bd998c744a4b7f..37230d100c9afd6c7b82589370f8fd8cbb07a90b 100644 (file)
--- a/drd/drd.h
+++ b/drd/drd.h
@@ -321,10 +321,12 @@ enum {
    /* args: null-terminated character string. */
 
    /* Tell DRD to insert a happens before annotation. */
-   VG_USERREQ__DRD_ANNOTATE_HAPPENS_BEFORE,
+   VG_USERREQ__DRD_ANNOTATE_HAPPENS_BEFORE
+      = VG_USERREQ_TOOL_BASE('H','G') + 256 + 33,
    /* args: Addr. */
    /* Tell DRD to insert a happens after annotation. */
-   VG_USERREQ__DRD_ANNOTATE_HAPPENS_AFTER,
+   VG_USERREQ__DRD_ANNOTATE_HAPPENS_AFTER
+      = VG_USERREQ_TOOL_BASE('H','G') + 256 + 34,
    /* args: Addr. */
 
    /* Tell DRD about an operation performed on a user-defined reader-writer
index d859735f2ae6cf5f39ec33efc00e19a9c1a147f2..ad3592481caf27a3a278035715b4731801709f00 100644 (file)
@@ -13,6 +13,8 @@ noinst_HEADERS =                                    \
        tsan_thread_wrappers_pthread.h
 
 EXTRA_DIST =                                        \
+       annotate_hbefore.stderr.exp                 \
+       annotate_hbefore.vgtest                     \
        annotate_order_1.stderr.exp                 \
        annotate_order_1.vgtest                     \
        annotate_order_2.stderr.exp                 \
diff --git a/drd/tests/annotate_hbefore.stderr.exp b/drd/tests/annotate_hbefore.stderr.exp
new file mode 100644 (file)
index 0000000..d18786f
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
diff --git a/drd/tests/annotate_hbefore.vgtest b/drd/tests/annotate_hbefore.vgtest
new file mode 100644 (file)
index 0000000..d898915
--- /dev/null
@@ -0,0 +1,4 @@
+prereq: test -e ../../helgrind/tests/annotate_hbefore && ./supported_libpthread
+vgopts: --read-var-info=yes --check-stack-var=yes --show-confl-seg=no
+prog: ../../helgrind/tests/annotate_hbefore
+stderr_filter: filter_stderr