fix: fix segfault handler in clang on windows
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
parent
db10e85526
commit
e973fda8ef
|
@ -110,10 +110,11 @@ void SehException::getCallStack(unsigned int code, struct _EXCEPTION_POINTERS *e
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
auto contextRecord = *ep->ContextRecord;
|
||||||
while (callstackCounter < maxCallstackDepth) {
|
while (callstackCounter < maxCallstackDepth) {
|
||||||
symbol->Name[255] = '\0';
|
symbol->Name[255] = '\0';
|
||||||
|
|
||||||
if (!StackWalk64(machine, hProcess, hThread, &stackFrame, ep->ContextRecord, nullptr, SymFunctionTableAccess64, SymGetModuleBase64, 0)) {
|
if (!StackWalk64(machine, hProcess, hThread, &stackFrame, &contextRecord, nullptr, SymFunctionTableAccess64, SymGetModuleBase64, 0)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue