]> git.eshelyaron.com Git - emacs.git/commitdiff
; * etc/DEBUG: Say that debugging code compiled w/ -Og can be hard.
authorSean Whitton <spwhitton@spwhitton.name>
Thu, 24 Apr 2025 12:14:36 +0000 (20:14 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 27 Apr 2025 13:28:22 +0000 (15:28 +0200)
(cherry picked from commit 62b284f91530952b248884f0de2f0dbd7b97b26c)

etc/DEBUG

index b95ea7e7e8cac6f068d0b06fdefff05587432222..ee920a6e89c05e20c3c309f327c10c69dbb9d4a0 100644 (file)
--- a/etc/DEBUG
+++ b/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.