diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-03 12:15:11 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-03 12:15:11 -0500 |
commit | b7f02b9741f313a6d6b96c1829d45fe09a39d0de (patch) | |
tree | 9d504613fe7b4ee55cd4986c58feb2fc47ae22c2 /pcr/lcov/handle-equals-signs.patch | |
parent | 20715decf4d41f95876e431d029ef69b89205ffa (diff) |
add pcr/lcov
Diffstat (limited to 'pcr/lcov/handle-equals-signs.patch')
-rw-r--r-- | pcr/lcov/handle-equals-signs.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pcr/lcov/handle-equals-signs.patch b/pcr/lcov/handle-equals-signs.patch new file mode 100644 index 000000000..8ab09985b --- /dev/null +++ b/pcr/lcov/handle-equals-signs.patch @@ -0,0 +1,23 @@ +Description: Handle "=====" as another form of zero. + gcov prints "=====" instead of "######" when an unexecuted line is + "reachable only by exceptional paths such as C++ exception handlers." + This should be handled the same as "######" for our purposes. +Author: Zack Weinberg <zackw@panix.com> +Last-Update: 2013-02-01 + +Index: lcov-1.12/bin/geninfo +=================================================================== +--- lcov-1.12.orig/bin/geninfo ++++ lcov-1.12/bin/geninfo +@@ -1771,8 +1771,9 @@ sub read_gcov_file($) + $number = (split(" ",substr($_, 0, 16)))[0]; + + # Check for zero count which is indicated +- # by ###### +- if ($number eq "######") { $number = 0; } ++ # by ###### or ===== ++ if ($number eq "######" or ++ $number eq "=====") { $number = 0; } + + if ($exclude_line) { + # Register uninstrumented line instead |