summaryrefslogtreecommitdiff
path: root/etc/DEBUG
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2005-03-01 16:01:05 +0000
committerDavid Kastrup <dak@gnu.org>2005-03-01 16:01:05 +0000
commit70d9a9cda7366457785c6031d0f09544131a786a (patch)
treebd675fa0b56d6947ba948bcbca72dc915de3c664 /etc/DEBUG
parent1868c863edaf8bd1472a83300964899ddd62aeb7 (diff)
downloademacs-70d9a9cda7366457785c6031d0f09544131a786a.tar.gz
Add information about `-fno-crossjumping' for GCC.
Diffstat (limited to 'etc/DEBUG')
-rw-r--r--etc/DEBUG9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/DEBUG b/etc/DEBUG
index b242d1d028d..fe3bde0c3b8 100644
--- a/etc/DEBUG
+++ b/etc/DEBUG
@@ -1,5 +1,5 @@
Debugging GNU Emacs
-Copyright (c) 1985, 2000, 2001 Free Software Foundation, Inc.
+Copyright (c) 1985, 2000, 2001, 2005 Free Software Foundation, Inc.
Permission is granted to anyone to make or distribute verbatim copies
of this document as received, in any medium, provided that the
@@ -20,6 +20,13 @@ document.]
where the executable was made. That directory has a .gdbinit file
that defines various "user-defined" commands for debugging Emacs.
+** When you are trying to analyze failed assertions, it will be
+essential to compile Emacs either completely without optimizations or
+at least (when using GCC) with the -fno-crossjumping option. Failure
+to do so may make the compiler recycle the same abort call for all
+assertions in a given function, rendering the stack backtrace useless
+for identifying the specific failed assertion.
+
** It is a good idea to run Emacs under GDB (or some other suitable
debugger) *all the time*. Then, when Emacs crashes, you will be able
to debug the live process, not just a core dump. (This is especially