From: Peter O. <obe...@us...> - 2010-11-19 15:12:02
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21396 Modified Files: geninfo Log Message: geninfo: ignore <built-in>.gcov files The gcov tool will sometimes create a file <built-in>.gcov for code which was added by gcc itself during compilation. Since there isn't any source available for such code, geninfo will fail. Fix this by skipping these files while capturing code coverage data. Index: geninfo =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/geninfo,v retrieving revision 1.89 retrieving revision 1.90 diff -C2 -d -r1.89 -r1.90 *** geninfo 28 Oct 2010 14:17:57 -0000 1.89 --- geninfo 19 Nov 2010 15:11:53 -0000 1.90 *************** *** 969,972 **** --- 969,975 ---- my $num; + # Skip gcov file for gcc built-in code + next if ($gcov_file eq "<built-in>.gcov"); + ($source, $object) = read_gcov_header($gcov_file); |