Commit Graph

76 Commits

Author SHA1 Message Date
Steve Checkoway 746261d8bd Split out itoa, SignalName, and SignalCodeName. All of these are macros, so testing for them directly is okay (at least on OS X and linux). If some other system doesn't implement them as macros, then checks for them can be added to the configure.ac script.
All of these can be called under crash conditions.
2006-03-28 14:20:57 +00:00
Glenn Maynard 994cdd256b cleanup 2006-02-08 05:28:22 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Steve Checkoway a1a1061792 Unneeded. 2006-01-14 01:27:08 +00:00
Steve Checkoway 07c6998820 Fix. AC_CHECK_DECLS always defines HAVE_DECL_*. 2006-01-12 09:36:02 +00:00
Steve Checkoway 963e3aab2a Split out BacktraceAllThreads() and do so when signaled with SIGUSR1. 2006-01-11 06:19:47 +00:00
Glenn Maynard 4d97933c43 move into namespace 2005-12-31 04:00:41 +00:00
Steve Checkoway 0311b4256b Cleanup. 2005-12-20 03:27:17 +00:00
Steve Checkoway aa0f90feae __MACOSX__ --> MACOSX, keep __MACOSX__ for ogg. 2005-10-24 10:37:56 +00:00
Steve Checkoway 99387583f9 DARWIN -> __MACOSX__ 2005-06-21 08:56:36 +00:00
Glenn Maynard 48fda990cd update 2004-10-27 19:52:51 +00:00
Glenn Maynard 11f1b49d7a fix crash handler crashes 2004-09-30 12:35:13 +00:00
Glenn Maynard 22570a4c33 cleanup 2004-09-08 21:19:13 +00:00
Glenn Maynard 4d829e3d29 wait, no. It's GetThreadBacktraceContext's job to suspend the thread. 2004-09-08 21:17:43 +00:00
Steve Checkoway 03e703e447 Fix OS X compile. 2004-09-08 08:35:07 +00:00
Glenn Maynard 96d780514e ForceCrashHandlerDeadlock(GetInvalidThreadId()) support 2004-09-08 08:08:06 +00:00
Glenn Maynard 8c92f9ec0f cleanup, simplify 2004-09-08 07:34:38 +00:00
Steve Checkoway f08a2d00c9 Remove Exceptions since OS X does not catch them. Instead, it waits for the signal. 2004-09-07 13:44:06 +00:00
Steve Checkoway 54f869a424 If it is invalid, GetThreadBacktraceContext will fail anyway. 2004-09-07 13:25:47 +00:00
Steve Checkoway a50839e1d0 Remove stubs, const fix 2004-09-07 12:40:44 +00:00
Steve Checkoway 0669938e81 Fix comment 2004-09-07 11:12:29 +00:00
Glenn Maynard 8ce2ae57d9 whoops 2004-06-16 03:41:33 +00:00
Glenn Maynard 7cb385a56f improve output 2004-06-16 03:39:43 +00:00
Glenn Maynard 0805aef930 ForceCrashHandlerDeadlock is only implemented in Linux 2004-06-12 01:01:30 +00:00
Glenn Maynard ef219fce39 small fixes preparing for arch/Threads 2004-06-11 07:09:43 +00:00
Glenn Maynard c51a588a45 license update 2004-05-15 08:23:53 +00:00
Glenn Maynard 7f970858dc CrashSignalHandler works on DARWIN 2004-04-16 07:13:18 +00:00
Glenn Maynard 66337428c7 comment 2004-04-07 07:41:58 +00:00
Glenn Maynard f8d81ce6a9 fix hangs after crash 2004-04-07 07:40:02 +00:00
Steve Checkoway 20a8bab45c Clean up includes. 2004-04-05 05:22:32 +00:00
Glenn Maynard 466a271917 reenable HaltAllThreads 2004-03-28 06:06:10 +00:00
Glenn Maynard c51170c7b7 handle CrashData::FORCE_CRASH_THIS_THREAD in recursive crashes 2004-03-26 03:40:01 +00:00
Steve Checkoway 915e48ad17 size_t will never equal -1 2004-03-24 17:32:31 +00:00
Glenn Maynard 9730d2cadc fix writing
fix error output
2004-03-24 08:22:38 +00:00
Glenn Maynard 3f3f6ad8ce don't return from the exception handler; that'll just crash 2004-03-24 07:25:53 +00:00
Glenn Maynard b0a8409a43 fix crash when write to parent fails 2004-03-24 07:22:02 +00:00
Glenn Maynard 3abe83c71e readlink(/proc/pid/exe) instead of using argv[0] 2004-03-22 05:27:25 +00:00
Glenn Maynard 4091e0cfaa ForceCrashHandlerDeadlock 2004-03-20 21:36:10 +00:00
Glenn Maynard 5dd5bda234 remove GetThreadBacktraceContext; GetBacktrace( x, NULL ) gets the current backtrace 2004-03-19 09:25:45 +00:00
Glenn Maynard 361a88f4b9 no GetSignalBacktraceContext or CrashSignalHandler on DARWIN 2004-03-19 08:48:47 +00:00
Glenn Maynard ff4291bc43 fix "crash handler crashed" detection 2004-03-19 08:41:46 +00:00
Steve Checkoway c35f4b1c98 s/theException/e/ 2004-03-19 08:30:58 +00:00
Glenn Maynard 308c68dc05 move SignalCodeName to CrashHandlerChild; not used on DARWIN 2004-03-19 08:28:14 +00:00
Glenn Maynard 0b34216843 OS X crash handling cleanup 2004-03-19 08:17:44 +00:00
Glenn Maynard f7d681e72f add CrashData struct
log more detailed signal information
2004-03-19 06:56:18 +00:00
Glenn Maynard 7f7667cac7 use ucontext_t 2004-03-19 05:03:19 +00:00
Glenn Maynard 03c9ff66e4 Block SIGPIPE in CrashSignalHandler. 2004-03-19 03:23:42 +00:00
Glenn Maynard 877cb324d1 better output on extra signal 2004-03-19 03:13:27 +00:00
Glenn Maynard 5d6063681c split out backtracing and symbol lookup
add support for backtracing other threads
2004-03-12 05:15:32 +00:00
Glenn Maynard 35688b1a21 sig handler fix 2004-03-12 03:03:09 +00:00