This is the mail archive of the gcc-help@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 for a selected shared library


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


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