I know StackWalk64()
API can be used to print call stack in windows.
There has been quite a few discussions about how does this work on SO.
StackWalk64 on Windows - Get symbol name
StackWalker - Walking the callstack
I observed StackWalk64()
requires symbol file(PDB file) to present in order to find out function names. If pdb file is not present symbol info is not printed.
My questions are -
- Is my understanding correct ? I don't find this documented.
- Is this API exposed for testing/debugging purpose ? How to make it work on
production systems where pdb files are not present ? - On Linux if symbol file is not present then mangled like call stack printed. At least can it be achieved on windows ?