How to get call stack in c in windows? [duplicate]
开发者_JS百科Possible Duplicate:
How can one grab a stack trace in C?
In PHP it's debug_backtrace
,is there such a function in c?
On Windows you can call the StackWalk64
function that is exported by DBGHELP.DLL
. It is shipped with Debugging Tools for Windows (WinDbg) but according to this link, "The redistribution policies for these included DLLs were specifically designed to make it as easy as possible for people to include these files in their own packages and releases."
精彩评论