Eclipse, CDT, Cygwin: GCov panel shows zero values [message #792101] |
Mon, 06 February 2012 11:05  |
Eclipse User |
|
|
|
Hi,
I use Eclipse Indigo on Windows, together with CDT 8.0, Cygwin 1.7.10-1 and Linux Tools labeled
GCov Integration (Incubation) 0.6.0.201201190007 org.eclipse.linuxtools.gcov.feature.group Eclipse Linux Tools
I use a very simple example to try out the features of the GCov plug-in:
#include <stdio.h>
int main (void)
{
int i;
for (i = 1; i < 10; i++)
{
if (i % 3 == 0)
printf ("%d is divisible by 3\n", i);
if (i % 11 == 0)
printf ("%d is divisible by 11\n", i);
}
return 0;
}
I compiled this code both with the --coverage or -fprofile-arcs -ftest-coverage options. Then I double-clicked on the gcno/gcda file and the GCov dialog opens up. I enter the correct path to the executable and select 'Show coverage details for ... only'. A nicely color coded editor window is presented as expected.

When I use the default setting however (Show coverage for the whole selected binary file), only zero values are shown.

Is this a bug or is it a feature? Do I do something wrong?
Attachment: color.jpg
(Size: 20.78KB, Downloaded 3295 times)
Attachment: gcovsum.jpg
(Size: 17.70KB, Downloaded 2725 times)
[Updated on: Mon, 06 February 2012 11:23] by Moderator
|
|
|
|
|
Re: Eclipse, CDT, Cygwin: GCov panel shows zero values [message #800000 is a reply to message #797388] |
Thu, 16 February 2012 10:01  |
Eclipse User |
|
|
|
Hi Hans,
I'm sorry, I was not able to reproduce with the following config:
- Windows 7
- eclipse Indigo
- CDT 8.0
- cygwin
- GNU strings (GNU Binutils) 2.22.51.20111013
Note: I've "C:\cygwin\bin" in system Path
Perhaps you can fill a bug, with a tar-ball of your project, and the content of the ".metadata/.log" file ?
|
|
|
Powered by
FUDForum. Page generated in 0.05352 seconds