Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Linux Tools Project » wrong gcov result (Pugin shows a different result than gcov text output.)
wrong gcov result [message #1238127] Fri, 31 January 2014 08:19
Dennis Frei is currently offline Dennis Frei
Messages: 1
Registered: January 2014
Junior Member
Hello forum members,

I get different results if I run gcov on the command line (text file output) and as eclipse gcov plugin.

gcov command line text output file shows (correctly):
        -:  122:void
       41:  123:process( void )
        -:  124:{
       41:  125:    if ( state_updated == true )
        -:  126:    {
        -:  127:        uint8_t step;
        -:  128:
        4:  130:        step = data_shadow[STEP];
        -:  132:
        4:  133:        state_updated = false;
        -:  135:    }
       41:  136:}

eclipse gcov plugin shows (wrong):
            122:void
       41   123:process( void )
            124:{
       41   125:    if ( state_updated == true )
            126:    {
            127:        uint8_t step;
            128:
        4   130:        step = data_shadow[STEP];
            132:
        4   133:        state_updated = false;
            135:    }
        0   136:}


The last line of the eclipse gcov plugin output shows a coverage of '0' (red) instead of '41'. This effect is only visible on some functions. Always on the last line of this functions.

I'm using Eclipse Kepler SR1 CDT and GCov Plugin 1.1.0.201312100517 (mingw with gcc 4.8.1 on a windows 7 host).

Any help will be appreciated.

[Updated on: Mon, 03 February 2014 02:55]

Report message to a moderator

Previous Topic:problem with linuxtools callgraph usage
Next Topic:Man Pages in Windows
Goto Forum:
  


Current Time: Sun Aug 31 02:28:20 EDT 2014

Powered by FUDForum. Page generated in 0.01881 seconds