GCC --coverage help

roodh siddharoodh.d@gmail.com
Tue Jul 2 06:15:00 GMT 2013


While collecting coverage of code, I found few lines of code are covering
and others not.
Ex :- 1. If function definiton is not covered, then lines within that
functions are covered.
        2. Function return statement is covering, even if functions has
already returned from if/else conditions.
        3. How the branch code is calculated ?.
           I found some time if(strcmp()), considering 5 branch some time 3

Could you anybody please explain me internal implementation of gcov or any

I went through the gcc/coverage.c and other files, could not get much


View this message in context: http://gcc.1065356.n5.nabble.com/GCC-coverage-help-tp950382.html
Sent from the gcc - Help mailing list archive at Nabble.com.

More information about the Gcc-help mailing list