From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,857a71ef8ce71775,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-07 22:38:04 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!feed2.news.rcn.net!rcn!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!xyzzy!nntp From: James Squire Subject: gcov with Ada question X-Nntp-Posting-Host: pls017031.mw.nos.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3EB9E3CF.978EA6D2@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en Mime-Version: 1.0 Date: Thu, 8 May 2003 04:57:51 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (Windows NT 5.0; U) Xref: archiver1.google.com comp.lang.ada:37056 Date: 2003-05-08T04:57:51+00:00 List-Id: 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