PANICTRACE (stacktrace on panic or signal) + bits

On crash signal or panic(), use a configurable method to get a stacktrace
the user can easily report to us.  Currently only for Unix/Linux and only
ifdef BETA.  Hopefully ports can add additional methods.

Bits:
- linux hints file had PREFIX definition in the wrong place
- sample sysconf file used wrong delimiter for WIZARDS
- fix grammar error in support message when using sysconf.wizards
- options.c comment typo
- capitalize "Crash test" output from #panic command
This commit is contained in:
keni
2010-01-15 19:54:37 +00:00
parent f6e40b8bf8
commit d80fcaada4
14 changed files with 277 additions and 19 deletions

View File

@@ -139,6 +139,12 @@ char *argv[];
initoptions_init();
read_config_file(SYSCF_FILE, SET_IN_SYS);
initoptions_finish();
#endif
#ifdef PANICTRACE
ARGV0 = argv[0]; /* save for possible stack trace */
# ifndef NO_SIGNAL
panictrace_setsignals(TRUE);
# endif
#endif
prscore(argc, argv);
exit(EXIT_SUCCESS);
@@ -164,6 +170,12 @@ char *argv[];
read_config_file(SYSCF_FILE, SET_IN_SYS);
#endif
initoptions_finish();
#ifdef PANICTRACE
ARGV0 = argv[0]; /* save for possible stack trace */
# ifndef NO_SIGNAL
panictrace_setsignals(TRUE);
# endif
#endif
exact_username = whoami();
/*