How to find function name from function pointer?

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

 



Hi,

I need to find the name of a function given the function pointer
(programmatically) at run-time.  I have used dladdr() to obtain the
library name but I'm not able to obtain the function name using that.
I have used addr2line to obtain the function name using the function
pointers but it is not giving any values.

Does gcc provide any mechanism using which I can achieve the above.
I'm using gcc version 4.1 on Linux.

Thanks,
Gaurav

[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