aboutsummaryrefslogtreecommitdiffstats
path: root/etc/DEBUG
diff options
context:
space:
mode:
authorGrégoire Jadi2013-06-15 11:24:47 +0200
committerGrégoire Jadi2013-06-15 11:24:47 +0200
commit1a0f9e5e80586e4f2157fdfecae250c5619edf15 (patch)
treedbf9c38ab630787db0e41667efc19715f7d571b4 /etc/DEBUG
parentc75684e7603cfea0ec91c63fca0187a5544245c8 (diff)
parent2a342ba649407875a265b8d56c9f7c3d87c4b43c (diff)
downloademacs-1a0f9e5e80586e4f2157fdfecae250c5619edf15.tar.gz
emacs-1a0f9e5e80586e4f2157fdfecae250c5619edf15.zip
Merge branch 'jave-xwidget' into xwidget
Diffstat (limited to 'etc/DEBUG')
-rw-r--r--etc/DEBUG15
1 files changed, 8 insertions, 7 deletions
diff --git a/etc/DEBUG b/etc/DEBUG
index 709e8987d03..61a8ee05e27 100644
--- a/etc/DEBUG
+++ b/etc/DEBUG
@@ -24,12 +24,14 @@ There are several ways to overcome that difficulty, they are all
24described in the node "Auto-loading safe path" in the GDB user manual. 24described in the node "Auto-loading safe path" in the GDB user manual.
25 25
26** When you are trying to analyze failed assertions or backtraces, it 26** When you are trying to analyze failed assertions or backtraces, it
27will be essential to compile Emacs either completely without 27is essential to compile Emacs with flags suitable for debugging.
28optimizations (set CFLAGS to "-O0 -g3") or at least (when using GCC) 28With GCC 4.8 or later, you can invoke 'make' with CFLAGS="-Og -g3".
29with the -fno-crossjumping option in CFLAGS. Failure to do so may 29With older GCC or non-GCC commpilers, you can use CFLAGS="-O0 -g3".
30make the compiler recycle the same abort call for all assertions in a 30With GCC and higher optimization levels such as -O2, the
31given function, rendering the stack backtrace useless for identifying 31-fno-omit-frame-pointer and -fno-crossjumping options are often
32the specific failed assertion. 32essential. The latter prevents GCC from using the same abort call for
33all assertions in a given function, rendering the stack backtrace
34useless for identifying the specific failed assertion.
33 35
34** It is a good idea to run Emacs under GDB (or some other suitable 36** It is a good idea to run Emacs under GDB (or some other suitable
35debugger) *all the time*. Then, when Emacs crashes, you will be able 37debugger) *all the time*. Then, when Emacs crashes, you will be able
@@ -769,4 +771,3 @@ Local variables:
769mode: outline 771mode: outline
770paragraph-separate: "[ ]*$" 772paragraph-separate: "[ ]*$"
771end: 773end:
772