diff options
| author | Paul Eggert | 2012-09-04 11:29:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-09-04 11:29:04 -0700 |
| commit | cf29dd84d205e1c78fed5d1ea0006a382658598c (patch) | |
| tree | 7e6806fdd94ef53cda78db6b29a4df0276408eb4 /src/eval.c | |
| parent | 972debf2e7381b4fd2c70f9c1fd585d8bd137917 (diff) | |
| download | emacs-cf29dd84d205e1c78fed5d1ea0006a382658598c.tar.gz emacs-cf29dd84d205e1c78fed5d1ea0006a382658598c.zip | |
Give more-useful info on a fatal error (Bug#12328).
* doc/emacs/trouble.texi (Crashing): New section, documenting this.
* etc/NEWS: Document the change.
* src/alloc.c [ENABLE_CHECKING]: Do not include <execinfo.h>.
(die) [ENABLE_CHECKING]: Call fatal_error_backtrace instead
of doing the work ourselves.
* src/emacs.c (fatal_error_signal): Let fatal_error_backtrace
do most of the work.
(fatal_error_backtrace): New function, taken from the guts
of the old fatal_error_signal, but with a new option to output
a backtrace.
(shut_down_emacs) [!DOS_NT]: Use strsignal to give more-useful
info about the signal than just its number.
* src/lisp.h (fatal_error_backtrace, emacs_backtrace): New decls.
* src/sysdep.c: Include <execinfo.h>
(emacs_backtrace): New function, taken partly from the previous
code of the 'die' function.
(emacs_abort): Call fatal_error_backtrace rather than abort.
Diffstat (limited to 'src/eval.c')
0 files changed, 0 insertions, 0 deletions