As the question states, I have a function address and want to analyze my binary to find its function name. Is there a tool to do that? I have both binary and symbols.
A:
On Windows in native code, you can use SymFromAddr in the dbghelp library to find out the symbol name. This does require you to have debug symbols for the binary. If you don't have any symbol information, you won't be able to find out the name of the function just from the binary itself.
It is also possible for one address to correspond to multiple functions - if several functions compile to the same machine code the linker may combine them together into a single piece of code in the binary.
Michael
2010-08-07 01:06:37