From: Julian Seward Date: Mon, 1 Sep 2014 22:32:52 +0000 (+0000) Subject: Make --read-inline-info=yes be the default on Memcheck and Helgrind X-Git-Tag: svn/VALGRIND_3_10_0~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d48b6484cff4805e483df507a9f120f4544cd42;p=thirdparty%2Fvalgrind.git Make --read-inline-info=yes be the default on Memcheck and Helgrind (just temporarily). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14423 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 185520786c..a15d55fe8a 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1801,6 +1801,19 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp ) "(early_) Process Valgrind's command line options\n"); early_process_cmd_line_options(&need_help, &toolname); + // BEGIN HACK + vg_assert(toolname != NULL); + vg_assert(VG_(clo_read_inline_info) == False); + if (0 == VG_(strcmp)(toolname, "memcheck") + || 0 == VG_(strcmp)(toolname, "helgrind")) { + /* Change the default setting. Later on (just below) + main_process_cmd_line_options should pick up any + user-supplied setting for it and will override the default + set here. */ + VG_(clo_read_inline_info) = True; + } + // END HACK + // Set default vex control params LibVEX_default_VexControl(& VG_(clo_vex_control));