I’m using CaptureStackBackTrace and SymFromAddr to identify the functions in the callstack.
Is there a way to find the source file of each symbol with this (i can’t find any documentation for this)? Or i have to use StackWalk ?
I’m using CaptureStackBackTrace and SymFromAddr to identify the functions in the callstack. Is there
Share
The solution was to use
SymGetLineFromAddrwhich gives the file path and the line number. In order to do this you must setSYMOPT_LOAD_LINESflag before callingSymInitialize. Also the 3’rd argument ofSymGetLineFromAddrmust be not NULL, otherwise it will crash.