First pass at adding ability for Memcheck to print all output in XML

form.  The relevant flag is --xml=yes.  Currently this only works with
Memcheck.

Specifying this flag fixes various other options relating to verbosity
and behaviour of the leak checker, so that the resulting output is in
a relatively fixed form suitable for parsing by GUIs.

Still to do:

* Add mechanism to show error counts
* Add regression test
* Document the resulting format



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3773
This commit is contained in:
Julian Seward
2005-05-19 00:25:45 +00:00
parent efe555f4fa
commit 161cfde150
12 changed files with 394 additions and 113 deletions

View File

@@ -61,10 +61,15 @@
}
/* Verbosity level: 0 = silent, 1 (default), > 1 = more verbose. */
extern Int VG_(clo_verbosity);
extern Int VG_(clo_verbosity);
/* Profile? */
extern Bool VG_(clo_profile);
/* Profile? default: NO */
extern Bool VG_(clo_profile);
/* Emit all messages as XML? default: NO */
/* If clo_xml is set, various other options are set in a non-default
way. See vg_main.c and mc_main.c. */
extern Bool VG_(clo_xml);
/* Call this if a recognised option was bad for some reason.
Note: don't use it just because an option was unrecognised -- return 'False'