fix: fix segfault handler in clang on windows

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski 2023-10-31 14:34:36 +00:00 committed by Compute-Runtime-Automation
parent db10e85526
commit e973fda8ef
1 changed files with 2 additions and 1 deletions

View File

@ -110,10 +110,11 @@ void SehException::getCallStack(unsigned int code, struct _EXCEPTION_POINTERS *e
#endif
auto contextRecord = *ep->ContextRecord;
while (callstackCounter < maxCallstackDepth) {
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;
}