如何获取导致错误的程序上下文的`callstack (而不是未处理的异常callstack)
例如:
LONG WINAPI myUnhandledException(PEXCEPTION_POINTERS pExceptionPtrs)
{
//Get the eip when the crash occur
DWORD eip = pExceptionPtrs->ContextRecord->Eip;
//how to get crash call stack??
//0x123
//0x896
//Eip
}
int main()
{ //Set the unhandledexceptionfilter
SetUnhandledExceptionFilter(myUnhandledException);
}发布于 2018-03-13 03:14:53
https://stackoverflow.com/questions/48260231
复制相似问题