]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make --read-inline-info=yes be the default on Memcheck and Helgrind
authorJulian Seward <jseward@acm.org>
Mon, 1 Sep 2014 22:32:52 +0000 (22:32 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 1 Sep 2014 22:32:52 +0000 (22:32 +0000)
(just temporarily).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14423

coregrind/m_main.c

index 185520786cfd5be8ff34865e1311e7d17bafaae6..a15d55fe8a0ebf3433cd43553cc5b8cbbc7a0e3c 100644 (file)
@@ -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));