This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcov trouble


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]