A new flag, --error-exitcode=, has been added, to allow changing the
exit code in runs where Valgrind reported errors.  Fixes #121814 and
#126517.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5897 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_options.c b/coregrind/m_options.c
index 47b6189..b498d5c 100644
--- a/coregrind/m_options.c
+++ b/coregrind/m_options.c
@@ -38,6 +38,7 @@
 /* Define, and set defaults. */
 VexControl VG_(clo_vex_control);
 Bool   VG_(clo_error_limit)    = True;
+Int    VG_(clo_error_exitcode) = 0;
 Bool   VG_(clo_db_attach)      = False;
 Char*  VG_(clo_db_command)     = GDB_PATH " -nw %f %p";
 Int    VG_(clo_gen_suppressions) = 0;