Re: Problems with gcov
- From: Jeffrey Creem <jeff@xxxxxxxxxxxxx>
- Date: Tue, 30 Jan 2007 15:35:30 -0500
igor.prakljacic@xxxxxxxxx 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?
.
- References:
- Problems with gcov
- From: igor . prakljacic
- Problems with gcov
- Prev by Date: Re: Ravenscar - program termination
- Next by Date: Re: Wasteful internationalization
- Previous by thread: Problems with gcov
- Next by thread: Interfacing with C - pointer problem
- Index(es):