Gcov for a selected shared library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux