VG_(maybe_add_context): also stop collecting errors when the total
number (in contrast to the total number of _different_) of them
gets too high.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@139 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/vg_include.h b/vg_include.h
index 19b635f..7ffafa0 100644
--- a/vg_include.h
+++ b/vg_include.h
@@ -98,7 +98,11 @@
 /* After this many different unsuppressed errors have been observed,
    stop collecting errors at all, and tell the user their program is
    evidently a steaming pile of camel dung. */
-#define M_VG_COLLECT_NO_ERRORS_AFTER 500
+#define M_VG_COLLECT_NO_ERRORS_AFTER_SHOWN 500
+
+/* After this many total errors have been observed, stop collecting
+   errors at all.  Counterpart to M_VG_COLLECT_NO_ERRORS_AFTER_SHOWN. */
+#define M_VG_COLLECT_NO_ERRORS_AFTER_FOUND 5000
 
 /* These many bytes below %ESP are considered addressible if we're
    doing the --workaround-gcc296-bugs hack. */