From: Peter O. <obe...@us...> - 2010-08-31 08:17:31
|
Update of /cvsroot/ltp/utils/analysis/lcov In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv7537 Modified Files: lcovrc Log Message: gcov: add configuration file option to not use gcov's -a option lcov calls gcov while specifying its --all-blocks option to get more detailed branch coverage data per line. It turns out that this option is broken on many versions of gcov, resulting in an endless loop while processing some gcov data files. There's also a slight performance penalty when specifying -a. lcov users can opt to not use the -a option by setting configuration option geninfo_gcov_all_blocks to 0 in the lcovrc file. Index: lcovrc =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/lcovrc,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** lcovrc 23 Aug 2010 14:47:38 -0000 1.15 --- lcovrc 31 Aug 2010 08:17:23 -0000 1.16 *************** *** 101,108 **** --- 101,115 ---- #geninfo_checksum = 1 + # Specify whether to capture coverage data for external source files (can + # be overridden by the --external and --no-external options of geninfo/lcov) + #geninfo_external = 1 + # Enable libtool compatibility mode if non-zero (same as --compat-libtool option # of geninfo if non-zero, same as --no-compat-libtool if zero) #geninfo_compat_libtool = 0 + # Use gcov's --all-blocks option if non-zero + #geninfo_gcov_all_blocks = 1 + # Directory containing gcov kernel files # lcov_gcov_dir = /proc/gcov *************** *** 132,137 **** # lcov_list_full_path is non-zero. lcov_list_truncate_max = 20 - - # Specify whether to capture coverage data for external source files (can - # be overridden by the --external and --no-external options of geninfo/lcov) - geninfo_external = 1 --- 139,140 ---- |