This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Help needed with gcov
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Sunil Kher <sunilkher at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 20 Oct 2005 17:28:33 +0100
- Subject: Re: Help needed with gcov
- References: <BAY104-F345C105FE8B69A7FA4CBE0B6730@phx.gbl>
Sunil Kher wrote:
Hey, Thanx for the response. What extra information should I provide? I
will try to provide you everything that you ask for. Also, what is the
latest version of gcov and where can I get it? Thanx, Sunil.
Please cc the gcc list. gcov is part of gcc, so the latest version will be with
the 4.0.2 gcc release. In order to help further your going to have to show how
you compiled and linked your program. what system you are running on. You
indicate that a simple test case doesn't work.
nathan
<BLOCKQUOTE style='PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:
#A0C6E5 2px solid; MARGIN-RIGHT: 0px'><font
style='FONT-SIZE:11px;FONT-FAMILY:tahoma,sans-serif'><hr color=#A0C6E5
size=1>
From: <i>Nathan Sidwell <nathan@codesourcery.com></i><br>To:
<i>Sunil Kher <sunilkher@hotmail.com></i><br>CC:
<i>help-gcc@gnu.org</i><br>Subject: <i>Re: Help needed with
gcov</i><br>Date: <i>Thu, 20 Oct 2005 15:53:36
+0100</i><br>MIME-Version: <i>1.0</i><br>Received: <i>from
mail.codesourcery.com ([65.74.133.11]) by MC8-F24.hotmail.com with
Microsoft SMTPSVC(6.0.3790.211); Thu, 20 Oct 2005 07:53:42
-0700</i><br>Received: <i>(qmail 5325 invoked from network); 20 Oct
2005 14:53:42 -0000</i><br>Received: <i>from unknown (HELO
?192.168.189.167?) (nathan@127.0.0.2) by mail.codesourcery.com with
ESMTPA; 20 Oct 2005 14:53:42 -0000</i><br>>Sunil Kher
wrote:<br>>>Hi, does any one know where can I get some help with
the code <br>>>coverage tool gcov? The problems I have are a
couple.<br>>><br>>>1. .da files are not generated for each
source code file compiled <br>>>with -fprofile-arcs
-ftest-coverage options but only for some.<br>>>2. Even for the
ones where .da files are generated, gcov states <br>>>that none of
the code was executed when I can see that some <br>>>particular
lines were executed. e.g. cout << "Hello World" will
<br>>>show me the output but gcov will state that the line was
never <br>>>executed.<br>>><br>>>Do you know where I
can find some help?<br>>><br>>>Thanx,
Sunil.<br>>>407-916-3521.<br>>><br>>>PS: The version I
am using for gcov is 1.5 and gcc version is <br>>>2.95.3 20010315
(release) running on Sun-Solaris.<br>><br>>There is too little
information here to give specific suggestions. <br>>However, if it
turns out that gcov is buggy (as opposed to just <br>>being invoked
incorrectly), it will not be fixed. To get a fix, <br>>you'll need
to update to a much more recent
release.<br>><br>>nathan<br>>--<br>>Nathan Sidwell ::
http://www.codesourcery.com :: <br>>CodeSourcery
LLC<br>>nathan@codesourcery.com ::
<br>>http://www.planetfall.pwp.blueyonder.co.uk<br>><br></font></BLOCKQUOTE>
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk