Move functions which deal with bad command line options from m_main
into m_options.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6233 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/include/pub_tool_options.h b/include/pub_tool_options.h
index 32ddd6d..202bdc2 100644
--- a/include/pub_tool_options.h
+++ b/include/pub_tool_options.h
@@ -75,15 +75,24 @@
    XML output, in between <usercomment> tags. */
 extern HChar* VG_(clo_xml_user_comment);
 
-/* Call this if a recognised option was bad for some reason.
-   Note: don't use it just because an option was unrecognised -- return 'False'
-   from VG_(tdict).tool_process_cmd_line_option) to indicate that. */
-extern void VG_(bad_option) ( Char* opt );
-
 /* Vex iropt control.  Tool-visible so tools can make Vex optimise
    less aggressively if that is needed (callgrind needs this). */
 extern VexControl VG_(clo_vex_control);
 
+/* Call this if a recognised option was bad for some reason.  Note:
+   don't use it just because an option was unrecognised -- return
+   'False' from VG_(tdict).tool_process_cmd_line_option) to indicate
+   that.  This function prints an error message, then shuts down the
+   entire system. */
+extern void VG_(err_bad_option) ( Char* opt );
+
+/* Similarly - complain that the executable is missing, then stop. */
+extern void VG_(err_missing_prog) ( void );
+
+/* Similarly - complain about some config error. */
+extern void VG_(err_config_error) ( Char* msg );
+
+
 #endif   // __PUB_TOOL_OPTIONS_H
 
 /*--------------------------------------------------------------------*/