Eclipse, CDT, Cygwin: GCov panel shows zero values [message #792101] |
Mon, 06 February 2012 16:05 |
Hans Meiser Messages: 2 Registered: February 2012 |
Junior Member |
|
|
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 3177 times) -
Attachment: gcovsum.jpg
(Size: 17.70KB, Downloaded 2613 times)
[Updated on: Mon, 06 February 2012 16:23] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01868 seconds