This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Gcov for a selected shared library
- From: Bruno Cardoso <brucardoso2 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 4 Apr 2012 23:14:20 -0300
- Subject: Gcov for a selected shared library
- References: <4899624388560950943@unknownmsgid>
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