comp.lang.ada
 help / color / mirror / Atom feed
* gcov with Ada question
@ 2003-05-08  4:57 James Squire
  0 siblings, 0 replies; only message in thread
From: James Squire @ 2003-05-08  4:57 UTC (permalink / 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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-08  4:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08  4:57 gcov with Ada question James Squire

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