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-Thread: 103376,7de420fed037ecc5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 30 Jan 2007 14:49:27 -0600 Date: Tue, 30 Jan 2007 15:35:30 -0500 From: Jeffrey Creem User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Problems with gcov References: <1170165978.983437.308430@v33g2000cwv.googlegroups.com> In-Reply-To: <1170165978.983437.308430@v33g2000cwv.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-1tW1Os+7npdsAiV+X/dHq8C/UyYekprB6w+i/Ifry9ZUvzyOjpvjq0Rm6Cpc1B6T9XotirioQBo9UrX!IoQPzY3uh4QJmY0Crf4yorWwdct3QucOUC7696ABAE437BwMI/DHaG6XcMP20/V3WmhrhCF/xTGD!jHg= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:8740 Date: 2007-01-30T15:35:30-05:00 List-Id: igor.prakljacic@gmail.com wrote: > Hello, > > i`m trying to use the gcov tool to measure the code coverage of my ada- > code, but it seems no to work. > I tried to measure the following code: (helloworld.adb) > > with Ada.Text_IO; > use Ada.Text_IO; > procedure helloworld is > begin > Put_Line("Hello World"); > end helloworld; > > The next steps are: > > % gnatmake -fprofile-arcs -ftest-coverage helloworld.adb > gnatgcc -c -fprofile-arcs -ftest-coverage helloworld.adb > gnatbind -x helloworld.ali > gnatlink helloworld.ali > > % ls > helloworld helloworld.adb helloworld.ali helloworld.bb > helloworld.bbg helloworld.o > > % ./helloworld > Hello World > > % ls > helloworld helloworld.adb helloworld.ali helloworld.bb > helloworld.bbg helloworld.o > > > There is no helloworld.gcno file. > What am i doing wrong. > > Thanks > > flux > Not sure. The same sequence of steps works for me on Centos. What GCC/GNAT version are you using and what OS?