Implement crash handling on Linux

This will allow us to generate crash dumps and have users report
crashes.
This commit is contained in:
Forkk
2014-05-09 17:33:32 -05:00
parent cf616efb5d
commit 93ae21abfc
8 changed files with 279 additions and 1 deletions

18
HandleCrash.h Normal file
View File

@ -0,0 +1,18 @@
// This is a simple header file for the crash handling system. It exposes only one method,
// initBlackMagic, which initializes the system, registering signal handlers, or doing
// whatever stupid things need to be done on Windows.
// The platform specific implementations for this system are in UnixCrash.cpp and
// WinCrash.cpp.
#if defined Q_OS_WIN
#warning Crash handling is not yet implemented on Windows.
#elif defined Q_OS_UNIX
#else
#warning Crash handling is not supported on this platform.
#endif
/**
* Initializes the crash handling system.
*/
void initBlackMagic();