]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
xtree leak.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 21 Jan 2017 12:20:33 +0000 (12:20 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 21 Jan 2017 12:20:33 +0000 (12:20 +0000)
As option --xtree-leak=yes is useless without a full leak report,
sets automatically full leak report if xtree leak report is requested.

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

memcheck/docs/mc-manual.xml
memcheck/mc_main.c

index 89f61d1a91c6eefb07e268d0a5d59c0bf545988b..1f861a9aa836e36ace6139b473a72708071ca4bc 100644 (file)
@@ -887,7 +887,9 @@ is <option>--errors-for-leak-kinds=definite,possible</option>
     </term>
     <listitem>
       <para>If set to yes, the results for the leak search done at exit will be
-       output in a 'Callgrind Format' execution tree file. The produced file
+        output in a 'Callgrind Format' execution tree file. Note that this
+        automatically sets the option <option>--leak-check=full</option>.
+        The produced file
        will contain the following events:</para>
       <itemizedlist>
         <listitem><para><option>RB</option> : Reachable Bytes</para></listitem> 
index b46104907904ceb2f82e35df8c3a97497daba9ad..d222f77f26e516232577d22e1228720c1c78a627 100644 (file)
@@ -8059,6 +8059,7 @@ static void mc_fini ( Int exitcode )
          xt_filename = VG_(expand_file_name)("--xtree-leak-file",
                                              MC_(clo_xtree_leak_file));
          lcp.xt_filename = xt_filename;
+         lcp.mode = LC_Full;
       }
       else
          lcp.xt_filename = NULL;