MCPcopy Create free account
hub / github.com/chromium/crashpad / UnhandledExceptionHandler

Function UnhandledExceptionHandler

handler/handler_main.cc:414–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412LONG(WINAPI* g_original_exception_filter)(EXCEPTION_POINTERS*) = nullptr;
413
414LONG WINAPI UnhandledExceptionHandler(EXCEPTION_POINTERS* exception_pointers) {
415 MetricsRecordExit(Metrics::LifetimeMilestone::kCrashed);
416 Metrics::HandlerCrashed(exception_pointers->ExceptionRecord->ExceptionCode);
417
418 if (g_original_exception_filter)
419 return g_original_exception_filter(exception_pointers);
420 else
421 return EXCEPTION_CONTINUE_SEARCH;
422}
423
424// Handles events like Control-C and Control-Break on a console.
425BOOL WINAPI ConsoleHandler(DWORD console_event) {

Callers

nothing calls this directly

Calls 1

MetricsRecordExitFunction · 0.85

Tested by

no test coverage detected