Hi. When I use gcc with the -fprofile-arcs -ftest-coverage options, it
creates .bbg files but not .bb files. gcov still works, but another tool I
would like to use (lcov:
http://ltp.sourceforge.net/coverage/lcov.readme.php) requires .bb files. I
know this used to work, do I need an older version of gcc? Relevant
information included below. TIA
gcc -ggdb -fprofile-arcs -ftest-coverage -o test test.c
ls -l test*
test
test.c
test.bbg
./test
hi
gcov test
File `test.c'
Lines executed:75.00% of 4
test.c:creating `test.c.gcov'
cat test.c.gcov
-: 0:Source:test.c
-: 0:Graph:test.bbg
-: 0:Data:test.da
-: 1:main(int argc, char *argv[])
1: 2:{
1: 3: if (argc<2)
1: 4: printf ("hi\n");
-: 5: else
#####: 6: printf ("bye\n");
-: 7:}
-: 8:
gcc -v
Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada
--disable-checking --libdir=/usr/lib64 --enable-libgcj --with-slibdir=/lib64
--with-system-zlib --enable-shared --enable-__cxa_atexit x86_64-suse-linux
Thread model: posix
gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/