XII Release 0.1.0
Loading...
Searching...
No Matches
xiiCrashHandler_WriteMiniDump Class Reference

#include <CrashHandler.h>

Inheritance diagram for xiiCrashHandler_WriteMiniDump:
[legend]

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 Public Member Functions inherited from xiiCrashHandler
static void SetCrashHandler (xiiCrashHandler *pHandler)
static xiiCrashHandler * GetCrashHandler ()

Detailed Description

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.

Member Function Documentation

◆ HandleCrash()

void xiiCrashHandler_WriteMiniDump::HandleCrash ( void * pOsSpecificData)
overridevirtual

Implements xiiCrashHandler.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/System/CrashHandler.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Platform/Implementation/Posix/CrashHandler_posix.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Platform/Implementation/Windows/CrashHandler_win.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/System/Implementation/CrashHandler.cpp