CrashHandlerImpl() { // Install exception handler only if we don't have Google breakpad // All this old code can be removed completly later on. #ifdef NBREAKPAD setSignalHandlers(); DumpCallstack(NullOut()); // dummy call to force loading dynamic lib at this point (with sane heap) for backtrace and friends notes << "registered simple signal handler" << endl; #endif }
CrashHandlerImpl() { if(CrashHandler_RecoverAfterCrash) { setSignalHandlers(); DumpCallstack(NullOut); // dummy call to force loading dynamic lib at this point (with sane heap) for backtrace and friends notes << "registered simple resuming signal handler" << endl; } else notes << "no signal handler with these settings" << endl; }