Gcov for a selected shared library

Bruno Cardoso brucardoso2@gmail.com
Thu Apr 5 02:14:00 GMT 2012


Hi,
I found a thread about gcov issues when working with shared libraries
that you guys provided some help.
I thought maybe you could help me too.

My case is a little different, I would like to generate, let's call
profiling data, for a unique shared library (example.so).
I'm using --coverage parameter for both my  CFLAGS and LDFLAGS, so,
when I run make it does something like this:

gcc --coverage example.c

gcc -shared --coverage example.o < ... otherflags...> -o example.so


Then I end up with a example.so plus a example.gcno.
When I run the program that make use of this .so, it doesn't produce
any .gcda file.

Is it possible to do, analyze only a specific shared library?

Thank you in advance,

Bruno Ribeiro Cardoso



More information about the Gcc-help mailing list