aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 2a831cea62a..157d3a1d799 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6685,21 +6685,14 @@ which_symbols (Lisp_Object obj, EMACS_INT find_max)
6685 6685
6686#ifdef ENABLE_CHECKING 6686#ifdef ENABLE_CHECKING
6687 6687
6688# include <execinfo.h>
6689
6690bool suppress_checking; 6688bool suppress_checking;
6691 6689
6692void 6690void
6693die (const char *msg, const char *file, int line) 6691die (const char *msg, const char *file, int line)
6694{ 6692{
6695 enum { NPOINTERS_MAX = 500 };
6696 void *buffer[NPOINTERS_MAX];
6697 int npointers;
6698 fprintf (stderr, "\r\n%s:%d: Emacs fatal error: %s\r\n", 6693 fprintf (stderr, "\r\n%s:%d: Emacs fatal error: %s\r\n",
6699 file, line, msg); 6694 file, line, msg);
6700 npointers = backtrace (buffer, NPOINTERS_MAX); 6695 fatal_error_backtrace (SIGABRT, INT_MAX);
6701 backtrace_symbols_fd (buffer, npointers, STDERR_FILENO);
6702 emacs_abort ();
6703} 6696}
6704#endif 6697#endif
6705 6698