MCPcopy Create free account
hub / github.com/ByteCorum/DragonBurn / SimplestCrashHandler

Function SimplestCrashHandler

DragonBurn-kernel/main.cpp:208–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208LONG WINAPI SimplestCrashHandler(EXCEPTION_POINTERS* ExceptionInfo)
209{
210 if (ExceptionInfo && ExceptionInfo->ExceptionRecord)
211 {
212 std::ostringstream oss;
213 oss << "Crash at addr 0x" << ExceptionInfo->ExceptionRecord->ExceptionAddress << L" by 0x" << std::hex << ExceptionInfo->ExceptionRecord->ExceptionCode;
214 Log::Error(oss.str(), false);
215 }
216 else
217 Log::Error("Program crashed", false);
218
219 if (intel_driver::hDevice)
220 intel_driver::Unload();
221
222 return EXCEPTION_EXECUTE_HANDLER;
223}
224
225bool callbackExample(ULONG64* param1, ULONG64* param2, ULONG64 allocationPtr, ULONG64 allocationSize)
226{

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.50

Tested by

no test coverage detected