Cleaned up the mess that was the treatment of "below main" functions such as
'__libc_start_main', in Massif, m_debuginfo and m_stacktrace. As part of
this, --show-below-main is now visible to tools, and Massif pays attention
to it.
Improved the description of --show-below-main=yes in the manual.
Replaced some instances of "__libc_start_main" in the test *.exp files with
"(below main)", which is what will actually be seen. Also updated
scalar.stderr.exp*, which should make it get closer to actually passing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9131 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/include/pub_tool_options.h b/include/pub_tool_options.h
index 7d8e60f..a45ce25 100644
--- a/include/pub_tool_options.h
+++ b/include/pub_tool_options.h
@@ -119,6 +119,10 @@
/* Number of parents of a backtrace. Default: 8. */
extern Int VG_(clo_backtrace_size);
+/* Continue stack traces below main()? Default: NO */
+extern Bool VG_(clo_show_below_main);
+
+
/* 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