mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
fix: correct getting callstack in segfault handler on Windows
get context record at the very beginning of function Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ef64de3f10
commit
5b75b1d5a9
@@ -57,6 +57,7 @@ void SehException::getCallStack(unsigned int code, struct _EXCEPTION_POINTERS *e
|
||||
DWORD machine = 0;
|
||||
HANDLE hProcess = GetCurrentProcess();
|
||||
HANDLE hThread = GetCurrentThread();
|
||||
auto contextRecord = *ep->ContextRecord;
|
||||
|
||||
SYSTEM_INFO systemInfo;
|
||||
GetSystemInfo(&systemInfo);
|
||||
@@ -110,7 +111,6 @@ void SehException::getCallStack(unsigned int code, struct _EXCEPTION_POINTERS *e
|
||||
|
||||
#endif
|
||||
|
||||
auto contextRecord = *ep->ContextRecord;
|
||||
while (callstackCounter < maxCallstackDepth) {
|
||||
symbol->Name[255] = '\0';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user