emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r115113: Correct overly-optimistic assumptions about


From: Eli Zaretskii
Subject: [Emacs-diffs] trunk r115113: Correct overly-optimistic assumptions about C macro support by "gcc -g3".
Date: Fri, 15 Nov 2013 08:19:44 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 115113
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2013-11-15 10:18:37 +0200
message:
  Correct overly-optimistic assumptions about C macro support by "gcc -g3".
  
   src/lisp.h (DEBUGGER_SEES_C_MACROS) [GCC < v3.5]: Pessimistically
   assume C macros are not supported even under -g3 in these old GCC
   versions.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/lisp.h                     lisp.h-20091113204419-o5vbwnq5f7feedwu-253
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-11-15 06:52:40 +0000
+++ b/src/ChangeLog     2013-11-15 08:18:37 +0000
@@ -1,3 +1,9 @@
+2013-11-15  Eli Zaretskii  <address@hidden>
+
+       * lisp.h (DEBUGGER_SEES_C_MACROS) [GCC < v3.5]: Pessimistically
+       assume C macros are not supported even under -g3 in these old GCC
+       versions.
+
 2013-11-15  Leo Liu  <address@hidden>
 
        * minibuf.c (Ftry_completion, Fall_completions)

=== modified file 'src/lisp.h'
--- a/src/lisp.h        2013-11-15 01:59:57 +0000
+++ b/src/lisp.h        2013-11-15 08:18:37 +0000
@@ -45,6 +45,13 @@
    definitions visible to the debugger.  It's used for symbols that
    .gdbinit needs, symbols whose values may not fit in 'int' (where an
    enum would suffice).  */
+#if defined DEBUGGER_SEES_C_MACROS && defined __GNUC__
+/* GCC versions before 3.5 have unreliable support for C macros in
+   debug info.  */
+# if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 5)
+#  undef DEBUGGER_SEES_C_MACROS
+# endif
+#endif
 #if defined MAIN_PROGRAM && !defined DEBUGGER_SEES_C_MACROS
 # define DEFINE_GDB_SYMBOL_BEGIN(type, id) type const id EXTERNALLY_VISIBLE
 # define DEFINE_GDB_SYMBOL_END(id) = id;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]