Re: Help needed with gcov

Balbir Singh <bsingharora@gmail.com>
23 Oct 2005 00:36:34 -0400

          From comp.compilers

Related articles
Help needed with gcov sunilkher@hotmail.com (2005-10-20)
Re: Help needed with gcov bsingharora@gmail.com (Balbir Singh) (2005-10-23)
| List of all articles for this month |

From: Balbir Singh <bsingharora@gmail.com>
Newsgroups: comp.compilers
Date: 23 Oct 2005 00:36:34 -0400
Organization: Hewlett-Packard Company
References: 05-10-139
Keywords: tools
Posted-Date: 23 Oct 2005 00:36:34 EDT

sunilkher@hotmail.com wrote:


> 1. For all the source files .da file is not generated.
> 2. Even when I can see that a particular line is being executed, e.g. I
> can see the output for a cout command, gcov states that the particular
> line was never executed.
>
> I have compiled my code with the -fprofile-arcs -ftest-coverage
> options and the gcov version I am using is 1.5 along with gcc gcc
> version 2.95.3 20010315 running on a sun solaris machine.


There are some known issues with gcov and gcc 2.95. You might want to
move to the next higher version (3.0)+. There are some patches posted
(search-able via google), but none of them worked for me.


Balbir


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.