2003-07-27 07:07:45 +00:00
|
|
|
#ifndef CRASH_HANDLER_H
|
2003-08-02 05:28:38 +00:00
|
|
|
#define CRASH_HANDLER_H
|
2003-07-27 07:07:45 +00:00
|
|
|
|
2004-03-19 07:08:40 +00:00
|
|
|
void ForceCrashHandler( const char *reason );
|
2004-03-11 23:58:49 +00:00
|
|
|
void CrashHandlerHandleArgs( int argc, char* argv[] );
|
2003-11-11 22:21:33 +00:00
|
|
|
void InitializeCrashHandler();
|
|
|
|
|
|
2004-03-19 08:48:47 +00:00
|
|
|
#if !defined(DARWIN)
|
|
|
|
|
#include <signal.h>
|
|
|
|
|
#include <ucontext.h>
|
|
|
|
|
void CrashSignalHandler( int signal, siginfo_t *si, const ucontext_t *uc );
|
|
|
|
|
#endif
|
|
|
|
|
|
2004-03-19 08:17:44 +00:00
|
|
|
#if defined(DARWIN)
|
2004-03-19 08:26:39 +00:00
|
|
|
#include <MachineExceptions.h>
|
2004-03-19 08:17:44 +00:00
|
|
|
OSStatus CrashExceptionHandler( ExceptionInformation *e );
|
|
|
|
|
#endif
|
|
|
|
|
|
2003-07-27 07:07:45 +00:00
|
|
|
#endif
|
|
|
|
|
|