![]() |
XII Release 0.1.0
|
A default implementation of xiiCrashHandler that tries to write a mini-dump and prints the callstack. More...
#include <CrashHandler.h>
Classes | |
struct | PathFlags |
Public Member Functions | |
void | SetFullDumpFilePath (xiiStringView sFullAbsDumpFilePath) |
Sets the raw path for the dump-file to write. | |
void | SetDumpFilePath (xiiStringView sAbsDirectoryPath, xiiStringView sAppName, xiiBitflags< PathFlags > flags=PathFlags::Default) |
Sets the dump-file path to "{szAbsDirectoryPath}/{szAppName}_{cur-date}.tmp". | |
void | SetDumpFilePath (xiiStringView sAppName, xiiBitflags< PathFlags > flags=PathFlags::Default) |
Sets the dump-file path to "{xiiOSFile::GetApplicationDirectory()}/{szAppName}_{cur-date}.tmp". | |
virtual void | HandleCrash (void *pOsSpecificData) override |
Static Public Attributes | |
static xiiCrashHandler_WriteMiniDump | g_Instance |
Protected Member Functions | |
virtual bool | WriteOwnProcessMiniDump (void *pOsSpecificData) |
virtual void | PrintStackTrace (void *pOsSpecificData) |
Protected Attributes | |
xiiString | m_sDumpFilePath |
Additional Inherited Members | |
![]() | |
static void | SetCrashHandler (xiiCrashHandler *pHandler) |
static xiiCrashHandler * | GetCrashHandler () |
A default implementation of xiiCrashHandler that tries to write a mini-dump and prints the callstack.
To use it, call xiiCrashHandler::SetCrashHandler(&xiiCrashHandler_WriteMiniDump::g_Instance); Do not forget to also specify the dump-file path, otherwise writing dump-files is skipped.
|
overridevirtual |
Implements xiiCrashHandler.