From: Peter O. <obe...@us...> - 2009-02-09 09:46:09
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv6244 Modified Files: geninfo Log Message: lcov: fix double-counting of function data Index: geninfo =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/geninfo,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** geninfo 21 Jan 2009 16:33:29 -0000 1.44 --- geninfo 9 Feb 2009 09:46:00 -0000 1.45 *************** *** 821,830 **** while (@gcov_functions) { ! printf(INFO_HANDLE "FNDA:%s,%s\n", ! $gcov_functions[0], ! $gcov_functions[1]); ! $funcs_found++; ! $funcs_hit++ if $gcov_functions[0]; ! splice(@gcov_functions,0,2); } if ($funcs_found > 0) { --- 821,831 ---- while (@gcov_functions) { ! my $count = shift(@gcov_functions); ! my $fn = shift(@gcov_functions); ! ! $fn =~ s/\W/_/g; ! printf(INFO_HANDLE "FNDA:$count,$fn\n"); ! $funcs_found++; ! $funcs_hit++ if ($count > 0); } if ($funcs_found > 0) { |