36 #ifndef _SignalHandler_H__ 37 #define _SignalHandler_H__ 47 #if defined(ORXONOX_PLATFORM_LINUX) 84 static void sigHandler(
int sig );
86 void catchSignal(
int sig );
98 #elif defined(ORXONOX_PLATFORM_WINDOWS) && defined(DBGHELP_FOUND) 115 static std::string getStackTrace(PEXCEPTION_POINTERS pExceptionInfo =
nullptr);
116 static std::string getExceptionType(PEXCEPTION_POINTERS pExceptionInfo);
119 static LONG WINAPI exceptionFilter(PEXCEPTION_POINTERS pExceptionInfo);
122 static PVOID getModuleBase(LPCVOID dwAddress);
124 template <
typename T>
125 static std::string pointerToString(
T pointer,
bool bFillZeros =
true);
126 template <
typename T>
129 static SignalHandler* singletonPtr_s;
132 LPTOP_LEVEL_EXCEPTION_FILTER prevExceptionFilter_;
149 static SignalHandler* singletonPtr_s;
basic_path< std::string, path_traits > path
Definition: CorePrereqs.h:316
std::list< SignalCallbackRec > SignalCallbackList
Definition: SignalHandler.h:70
#define _UtilExport
Definition: UtilPrereqs.h:60
::std::string string
Definition: gtest-port.h:756
The SignalHandler is used to catch signals like SIGSEGV and write a backtrace to the logfile...
Definition: SignalHandler.h:73
Various constants and options that only affect very little code.
sig_t handler
Definition: SignalHandler.h:59
std::string filename
Definition: SignalHandler.h:94
std::list< SignalRec > SignalRecList
Definition: SignalHandler.h:69
Definition: SignalHandler.h:62
Base for singleton classes.
Definition: Singleton.h:114
std::string appName
Definition: SignalHandler.h:93
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
SignalCallbackList callbackList
Definition: SignalHandler.h:89
static SignalHandler * singletonPtr_s
Definition: SignalHandler.h:91
Shared library macros, enums, constants and forward declarations for the util library ...
Definition: InputPrereqs.h:78
int signal
Definition: SignalHandler.h:58
void * someData
Definition: SignalHandler.h:65
SignalRecList sigRecList
Definition: SignalHandler.h:87
Definition of the Singleton template that is used as base class for classes that allow only one insta...
Definition: SignalHandler.h:56
SignalCallback cb
Definition: SignalHandler.h:64
int(* SignalCallback)(void *someData)
Definition: SignalHandler.h:54