How to find function name from function pointer?
Gaurav Jain
gaurav.anywhere@gmail.com
Mon Jun 4 13:44:00 GMT 2007
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
More information about the Gcc-help
mailing list