Steve Checkoway
81afe152ec
Oops, two changes in that last commit. Don't have the child kill the parent any longer. This doesn't work when gdb is tracing. Why is the parent waiting for the child anyway? It shouldn't really matter that much if the child is signaled.
...
Also, why doesn't RunCrashHandler call _exit()? ForceDeadlock() calls _exit() after RunCrashHandler(), but ForceCrash does not, it has to go back to sm_crash() before _exit() is called. It's all very mysterious at 6:30 am.
2006-03-28 14:26:22 +00:00
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
Chris Danford
ff338d15b8
PRODUCT_NAME -> PRODUCT_FAMILY
...
PRODUCT_NAME_VER -> PRODUCT_ID_VER
2006-02-26 00:31:31 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Steve Checkoway
bc3d7d8af4
Fix spacing issues (using 8 space tab stops and indents, but I think that should only matter for the final fprintf().
2006-01-14 01:54:22 +00:00
Steve Checkoway
e7943393b9
Cleanup
2006-01-09 02:10:14 +00:00
Glenn Maynard
4d97933c43
move into namespace
2005-12-31 04:00:41 +00:00
Chris Danford
37f82b43f7
remove CStringArray #define
2005-12-09 21:36:22 +00:00
Chris Danford
560a70d452
move bug report URLs to ProductInfo.h
2005-10-28 17:24:10 +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
Steve Checkoway
0bc5c2ede4
Kill our parent first.
2005-06-19 07:28:59 +00:00
Steve Checkoway
360a2d6651
Fix warning.
2005-05-14 07:36:19 +00:00
Glenn Maynard
8eeb98c1ac
try to show a PID for any signal
2005-04-29 21:04:47 +00:00
Glenn Maynard
f9bcb3c78b
fix 64-bit address output
2004-10-22 22:42:28 +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
a2fb826774
Writing to stdin just doesn't seem right. Also, why not just FILE *tty = fopen(/dev/stderr, w); if you worried about it having been closed by the crashed parent?
2004-08-26 21:30:59 +00:00
Glenn Maynard
7cb385a56f
improve output
2004-06-16 03:39:43 +00:00
Glenn Maynard
c51a588a45
license update
2004-05-15 08:23:53 +00:00
Glenn Maynard
f952f9fc4f
handle CrashData::SIGNAL in DARWIN
2004-04-16 07:00:45 +00:00
Glenn Maynard
bf62e02420
fix crash notification not being displayed if stdout has been closed
2004-04-09 21:02:43 +00:00
Steve Checkoway
a8626a2df4
Kill parent on OS X.
2004-04-05 08:06:49 +00:00
Steve Checkoway
20a8bab45c
Clean up includes.
2004-04-05 05:22:32 +00:00
Glenn Maynard
b461476016
better error handling
...
may need to read() more than once
2004-03-24 08:26:47 +00:00
Glenn Maynard
4091e0cfaa
ForceCrashHandlerDeadlock
2004-03-20 21:36:10 +00:00
Glenn Maynard
2311b8ccf9
oops
2004-03-19 08:29:11 +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
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
14f6a6f510
reduce crash handler dependency on StepMania.cpp
2004-03-11 23:58:49 +00:00
Glenn Maynard
ad6a7d8ff2
write crashinfo to ~; in /tmp, it won't be written if some other user already has a crashinfo.txt there
2004-03-06 01:19:05 +00:00
Glenn Maynard
b63eaa449c
fix output
2004-02-15 22:41:08 +00:00
Glenn Maynard
a21be8711d
simplify
2003-12-22 02:20:49 +00:00
Glenn Maynard
202d35668f
remove output
2003-11-11 21:22:27 +00:00
Glenn Maynard
a3031073a7
demangle fix
2003-11-11 21:10:24 +00:00
Glenn Maynard
06b6f2d6bc
Improve error handling, output crashed thread name
2003-10-21 09:00:15 +00:00
Steve Checkoway
0ede96ac63
Correct handling of demangling.
2003-09-18 10:17:32 +00:00
Steve Checkoway
f5674096df
um, remove the WTF, my bad.
2003-09-17 22:47:52 +00:00
Steve Checkoway
d0b3e37631
Add name demangling for BACKTRACE_LOOKUP_METHOD_ATOS.
2003-09-17 21:55:43 +00:00
Glenn Maynard
006d188bb5
Sync Unix crash handler output with Windows (thread stacks above backtrace)
2003-08-28 22:17:42 +00:00
Glenn Maynard
fa67577a4f
improve output
2003-08-19 02:30:10 +00:00
Glenn Maynard
f754f4259b
SIGIOT is just an obscure name for SIGABRT
2003-08-19 01:32:07 +00:00
Glenn Maynard
cca9a68b95
Cleanup, fix checkpoint output.
2003-08-16 20:54:15 +00:00
Steve Checkoway
586c31a1b6
Exit with an error code.
2003-08-12 01:43:52 +00:00
Steve Checkoway
3934e67cbd
Removed ssprintf().
...
Fixed the buffer length constant.
Replaced some exit()s w/ return to get at least a partial crashlog.
Replaced exit() with _exit() in the forked process.
2003-08-12 00:53:32 +00:00
Steve Checkoway
75e75fde23
Show the Checkpoints in the crashinfo.txt.
2003-08-07 19:58:15 +00:00
Steve Checkoway
db6659ba91
Allow undefined BACKTRACE_* but emit a compiler warning.
2003-08-07 18:29:35 +00:00