determine name of running function from eip address? [duplicate]
Possible Duplicate:
use callback function to report stack backtrace
Given a void *eip and an array of struct function symbols that contain the address, symbolic name, and binding of all function symbols in the file, how do I determine the function running at the time of the error?
If the executing module isn't relocated at runtime, you could probably try to check if your EIP lies between two function addresses in your function symbols.
精彩评论