Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Linux Tools Project » Eclipse, CDT, Cygwin: GCov panel shows zero values (Eclipse, CDT, Cygwin: GCov panel shows zero values)
Eclipse, CDT, Cygwin: GCov panel shows zero values [message #792101] Mon, 06 February 2012 11:05 Go to previous message
Hans Meiser is currently offline 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.

index.php/fa/7035/0/


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


index.php/fa/7036/0/

Is this a bug or is it a feature? Do I do something wrong?
  • Attachment: color.jpg
    (Size: 20.78KB, Downloaded 726 times)
  • Attachment: gcovsum.jpg
    (Size: 17.70KB, Downloaded 720 times)

[Updated on: Mon, 06 February 2012 11:23]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic:Problem with OPofiler in Ubuntu
Next Topic:CTF Status?
Goto Forum:
  


Current Time: Sat May 25 04:39:13 EDT 2013

Powered by FUDForum. Page generated in 0.02884 seconds