Help in modifying GCOV code

Holger Blasum hbl@sysgo.com
Thu Sep 27 13:15:00 GMT 2007


Quick response:

did you make sure 
* that the gcov you are calling is the one in your PATH (echo $PATH)?,
otherwise in a default ubuntu install you just may just get the 
default one from ubuntu, so call with /your-gcc-build-dir/bin/gcov 
* that the gcov you are calling has a recent timestamp (ls)?
* did you call 'make install' after 'make' in gcc build?

e.g. in a 4.3.0 build tree my gcovs are like this 

~/i/gcc-build$ find . -name gcov -exec ls -la '{}' ';'
-rwxr-xr-x 1 hbl hbl 64911 2007-09-02 23:36 ./stage1-gcc/gcov <- "make"
-rwxr-xr-x 1 hbl hbl 84416 2007-09-04 00:48 ./gcc/gcov <- "make"
-rwxr-xr-x 1 hbl hbl 84666 2007-09-04 00:46 ./prev-gcc/gcov <- "make"
-rwxr-xr-x 1 hbl hbl 84416 2007-09-13 20:50 ./bin/gcov <- "make install" 

playing with gcov is fun ... 

-- 
Holger Blasum SYSGO AG
Web: http://www.sysgo.com



More information about the Gcc-help mailing list