wrong gcov result [message #1238127] |
Fri, 31 January 2014 13:19 |
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 07:55] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02981 seconds