diff options
| author | Grégoire Jadi | 2013-06-15 11:24:47 +0200 |
|---|---|---|
| committer | Grégoire Jadi | 2013-06-15 11:24:47 +0200 |
| commit | 1a0f9e5e80586e4f2157fdfecae250c5619edf15 (patch) | |
| tree | dbf9c38ab630787db0e41667efc19715f7d571b4 /etc/DEBUG | |
| parent | c75684e7603cfea0ec91c63fca0187a5544245c8 (diff) | |
| parent | 2a342ba649407875a265b8d56c9f7c3d87c4b43c (diff) | |
| download | emacs-1a0f9e5e80586e4f2157fdfecae250c5619edf15.tar.gz emacs-1a0f9e5e80586e4f2157fdfecae250c5619edf15.zip | |
Merge branch 'jave-xwidget' into xwidget
Diffstat (limited to 'etc/DEBUG')
| -rw-r--r-- | etc/DEBUG | 15 |
1 files changed, 8 insertions, 7 deletions
| @@ -24,12 +24,14 @@ There are several ways to overcome that difficulty, they are all | |||
| 24 | described in the node "Auto-loading safe path" in the GDB user manual. | 24 | described 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 |
| 27 | will be essential to compile Emacs either completely without | 27 | is essential to compile Emacs with flags suitable for debugging. |
| 28 | optimizations (set CFLAGS to "-O0 -g3") or at least (when using GCC) | 28 | With GCC 4.8 or later, you can invoke 'make' with CFLAGS="-Og -g3". |
| 29 | with the -fno-crossjumping option in CFLAGS. Failure to do so may | 29 | With older GCC or non-GCC commpilers, you can use CFLAGS="-O0 -g3". |
| 30 | make the compiler recycle the same abort call for all assertions in a | 30 | With GCC and higher optimization levels such as -O2, the |
| 31 | given function, rendering the stack backtrace useless for identifying | 31 | -fno-omit-frame-pointer and -fno-crossjumping options are often |
| 32 | the specific failed assertion. | 32 | essential. The latter prevents GCC from using the same abort call for |
| 33 | all assertions in a given function, rendering the stack backtrace | ||
| 34 | useless 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 |
| 35 | debugger) *all the time*. Then, when Emacs crashes, you will be able | 37 | debugger) *all the time*. Then, when Emacs crashes, you will be able |
| @@ -769,4 +771,3 @@ Local variables: | |||
| 769 | mode: outline | 771 | mode: outline |
| 770 | paragraph-separate: "[ ]*$" | 772 | paragraph-separate: "[ ]*$" |
| 771 | end: | 773 | end: |
| 772 | |||