This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcov not generating .gcda file
- From: "Andi Hellmund" <mail at andihellmund dot com>
- To: hmiller at hiwaay dot net
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 12 Jun 2010 10:43:20 +0200
- Subject: Re: gcov not generating .gcda file
- References: <20100611123650.201122cdo0y46a0i@webmail.hiwaay.net>
- Reply-to: mail at andihellmund dot com
Hey,
> I was doing some coverage testing today using gcov and gcc (4.1.2 on
> Linux), and for some reason, the .gcda files quit getting generated.
When saying quit generating: don't you get any .gcda file or are there
just a few files missing beginning from a certain point of time?
> There are no other errors. The tests run fine and give the correct
> results. This was working before.
Were there any changes to your environment since this was working the last
time? Did you update the gcc/gcov version? Did you possibly make any
changes to your build infrastructure?
When compiling your code with the special gcov options (-fprofile-arcs
-ftest-coverage), do you have a .gcno file for each source file or are
there possibly missing some .gcno files as well?
Andi