|
From: <sv...@va...> - 2009-05-16 02:03:42
|
Author: sewardj
Date: 2009-05-16 02:55:20 +0100 (Sat, 16 May 2009)
New Revision: 9847
Log:
Should have been committed in r9846 (which was: add before_pp_Error to
the VG_(needs_xml_output).
Modified:
branches/MESSAGING_TIDYUP/include/pub_tool_tooliface.h
Modified: branches/MESSAGING_TIDYUP/include/pub_tool_tooliface.h
===================================================================
--- branches/MESSAGING_TIDYUP/include/pub_tool_tooliface.h 2009-05-16 01:50:48 UTC (rev 9846)
+++ branches/MESSAGING_TIDYUP/include/pub_tool_tooliface.h 2009-05-16 01:55:20 UTC (rev 9847)
@@ -424,7 +424,17 @@
/* Can the tool do XML output? This is a slight misnomer, because the tool
* is not requesting the core to do anything, rather saying "I can handle
* it". */
-extern void VG_(needs_xml_output)( void );
+extern void VG_(needs_xml_output)(
+ // We give tools a chance to have a look at errors
+ // just before they are printed. That is, before_pp_Error is
+ // called just before pp_Error itself. This gives the tool a chance
+ // to look at the just-about-to-be-printed error, so as to emit any
+ // arbitrary output they want to, before the error itself is
+ // printed. This functionality was added to allow Helgrind to print
+ // thread-announcement messages in XML form, but is in fact called
+ // regardless of whether or not we're in XML mode.
+ void (*before_pp_Error)( Error* )
+);
/* Does the tool want to have one final pass over the IR after tree
building but before instruction selection? If so specify the
|