This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help needed with gcov


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 &lt;nathan@codesourcery.com&gt;</i><br>To: <i>Sunil Kher &lt;sunilkher@hotmail.com&gt;</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>&gt;Sunil Kher wrote:<br>&gt;&gt;Hi, does any one know where can I get some help with the code <br>&gt;&gt;coverage tool gcov? The problems I have are a couple.<br>&gt;&gt;<br>&gt;&gt;1. .da files are not generated for each source code file compiled <br>&gt;&gt;with -fprofile-arcs -ftest-coverage options but only for some.<br>&gt;&gt;2. Even for the ones where .da files are generated, gcov states <br>&gt;&gt;that none of the code was executed when I can see that some <br>&gt;&gt;particular lines were executed. e.g. cout &lt;&lt; &quot;Hello World&quot; will <br>&gt;&gt;show me the output but gcov will state that the line was never <br>&gt;&gt;executed.<br>&gt;&gt;<br>&gt;&gt;Do you know where I can find some help?<br>&gt;&gt;<br>&gt;&gt;Thanx, Sunil.<br>&gt;&gt;407-916-3521.<br>&gt;&gt;<br>&gt;&gt;PS: The version I am using for gcov is 1.5 and gcc version is <br>&gt;&gt;2.95.3 20010315 (release) running on Sun-Solaris.<br>&gt;<br>&gt;There is too little information here to give specific suggestions. <br>&gt;However, if it turns out that gcov is buggy (as opposed to just <br>&gt;being invoked incorrectly), it will not be fixed. To get a fix, <br>&gt;you'll need to update to a much more recent release.<br>&gt;<br>&gt;nathan<br>&gt;--<br>&gt;Nathan Sidwell :: http://www.codesourcery.com :: <br>&gt;CodeSourcery LLC<br>&gt;nathan@codesourcery.com :: <br>&gt;http://www.planetfall.pwp.blueyonder.co.uk<br>&gt;<br></font></BLOCKQUOTE>






--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]