Skip to main content


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 13:19 Go to next message
Dennis Frei is currently offline Dennis FreiFriend
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 07:55]

Report message to a moderator

Re: wrong gcov result [message #1608333 is a reply to message #1238127] Mon, 09 February 2015 12:41 Go to previous messageGo to next message
Arnd Strube is currently offline Arnd StrubeFriend
Messages: 2
Registered: February 2015
Junior Member
I experience the same problem. I believe this is a bug in the gcov plugin and should be reported.

In addition, sometimes lines are red that can't possibly be red, such as
if (...) [RED]
{
     [green]
}
... 


I'm using Eclipse Kepler SR1 CDT and GCov Plugin 1.1.0.201402102340 (Cygwin with gcc 4.8.2 on a windows 7 host).
Re: wrong gcov result [message #1609878 is a reply to message #1238127] Tue, 10 February 2015 11:50 Go to previous message
Arnd Strube is currently offline Arnd StrubeFriend
Messages: 2
Registered: February 2015
Junior Member
Gcov Plugin:
index.php/fa/20782/0/
index.php/fa/20784/0/
Gcov:
index.php/fa/20783/0/
  • Attachment: plugin.png
    (Size: 24.23KB, Downloaded 517 times)
  • Attachment: gcov.png
    (Size: 30.18KB, Downloaded 527 times)
  • Attachment: plugin_summary.png
    (Size: 21.50KB, Downloaded 510 times)

[Updated on: Tue, 10 February 2015 11:53]

Report message to a moderator

Previous Topic:OProfile plug in problems (doesn't work)
Next Topic:AnalysisInfo.txt logic missing when opening GCDA file
Goto Forum:
  


Current Time: Sat Apr 27 02:27:14 GMT 2024

Powered by FUDForum. Page generated in 0.03353 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top