comp.lang.ada
 help / color / mirror / Atom feed
From: James Squire <james.a.squire@boeing.com>
Subject: gcov with Ada question
Date: Thu, 8 May 2003 04:57:51 GMT
Date: 2003-05-08T04:57:51+00:00	[thread overview]
Message-ID: <3EB9E3CF.978EA6D2@boeing.com> (raw)

I've been trying to use gcov with my Ada application built with GNAT. 
The problem is I have source files in two different directories, object
code in a third directory, and wanted to run gcov from a fourth
directory.  The gcov documentation I have found has been a little
confusing, but by trial and error I discovered that the only way gcov
would work was if I was actually in the directory where GNAT put my
object code when I run gcov, and then it can find the coverage files in
the current directory and use either the .o or the .ali file to find the
source file, but I noticed that some of the gcov files get created more
than once (representing packages that are withed more than once), and
each time the previous file is trashed.  So I tried using the -l option,
but then it was unable to form the extended file name correctly ... all
because I don't have all my sources and objects in one directory, which
is what it seems to want.

Is there any other coverage tool out there I might use that might be a
little more flexible?  Even if I do copy all my source files to one
directory and rebuild my application in place, the gcov -l option will
still fail when it tries to create a gcov file for a GNATPRO library
package (I'm running on a PC).

Any suggestions would be welcome.

advTHANKSance
-- 
James Squire
Software Engineering Tools and Environments
Boeing St. Louis
Work: (314)-232-7010
Work@Home: (314)-831-4812
Pager#: (314)-318-2376



                 reply	other threads:[~2003-05-08  4:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox