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]

Re: __cyg_profile_func_enter is not called with correct address ?


robert song wrote:
> Hello, everyone.
> It is another question, now I used kview to test, by rebuilding it in the
> kdegraphics-3.5.4 with -finstrument-functions option. But I found that in
>  libkdeinit_kview.so, one function can have multiply profiling entry, for
>  example, kdemain function (located in kdegraphics-3.5.4/kview/main.cpp)
>  has three _cyg_profile_func_{enter,exit} pairs.
> 
> the return address after these entries are located at:
> kdegraphics-3.5.4/kview/main.cpp:39
> /usr/lib/qt-3.3/include/qapplication.h:501
> kdegraphics-3.5.4/kview/main.cpp:45
> 
> I don't know why this happens, and can anyone help me ?

It's probably because functions have been inlined.

Andrew.


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