gcov trouble

Margus Metskivi Margus.Metskivi@liewenthal.ee
Fri Mar 8 01:27:00 GMT 2002


Hi

Is there anybody who has a good experience with gcov coverage program? 
Here we have quite a big project with many .so libraries. Someway when 
compiling project files with parameters
-ftest-coverage -fprofile-arcs gcov -b file.cpp doesn't work. 
file.da, file.bb and file.bbg files are in the same path with file.cpp but 
gcov -b file.cpp gives Aborted(core dumped) error. 

Debugging of gcov shows that real count of program "arcs" when executing 
cpp code does not match arc number written somewhere in .bb, .bbg files.
It means: gcc writes the number of arcs found in .cpp (and in all include 
files) somewhere in .bb or .bbg but gcov finds more arcs when executing
the code of .cpp and crashes. 
Are there any ideas how to make gcov work?

Margus Metskivi



More information about the Gcc mailing list