mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 03:13:24 +00:00
; * etc/DEBUG: Say that debugging code compiled w/ -Og can be hard.
This commit is contained in:
parent
49ea1f64c7
commit
62b284f915
1 changed files with 5 additions and 5 deletions
10
etc/DEBUG
10
etc/DEBUG
|
@ -19,11 +19,11 @@ such as --prefix):
|
|||
./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type \
|
||||
CFLAGS='-O0 -g3'
|
||||
|
||||
The -O0 flag is important, as debugging optimized code can be hard.
|
||||
If the problem happens only with optimized code, you may need to
|
||||
enable optimizations. If that happens, try using -Og first instead of
|
||||
-O2, as -Og disables some optimizations that make debugging some code
|
||||
exceptionally hard.
|
||||
The -O0 flag is important, as debugging optimized code can be hard, even
|
||||
in the case that the -Og compiler option is used. If the problem
|
||||
happens only with optimized code, you may need to enable optimizations.
|
||||
If that happens, try using -Og first instead of -O2, as -Og disables
|
||||
some optimizations that make debugging some code exceptionally hard.
|
||||
|
||||
Older versions of GCC may need more than just the -g3 flag. For more,
|
||||
search for "analyze failed assertions" below.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue