diff options
| author | Eli Zaretskii | 2013-11-15 10:18:37 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-11-15 10:18:37 +0200 |
| commit | 73583a99782d58134e75a81ba0ca2dc8a9bcf37b (patch) | |
| tree | e4bc57f82a60104046de02ec205d7cc344e916f4 /src/lisp.h | |
| parent | 3cd4192f84071777b36dab8a051cda5059eb4262 (diff) | |
| download | emacs-73583a99782d58134e75a81ba0ca2dc8a9bcf37b.tar.gz emacs-73583a99782d58134e75a81ba0ca2dc8a9bcf37b.zip | |
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.
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h index 3eb31ac34be..50b0f75c471 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -45,6 +45,13 @@ INLINE_HEADER_BEGIN | |||
| 45 | definitions visible to the debugger. It's used for symbols that | 45 | definitions visible to the debugger. It's used for symbols that |
| 46 | .gdbinit needs, symbols whose values may not fit in 'int' (where an | 46 | .gdbinit needs, symbols whose values may not fit in 'int' (where an |
| 47 | enum would suffice). */ | 47 | enum would suffice). */ |
| 48 | #if defined DEBUGGER_SEES_C_MACROS && defined __GNUC__ | ||
| 49 | /* GCC versions before 3.5 have unreliable support for C macros in | ||
| 50 | debug info. */ | ||
| 51 | # if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 5) | ||
| 52 | # undef DEBUGGER_SEES_C_MACROS | ||
| 53 | # endif | ||
| 54 | #endif | ||
| 48 | #if defined MAIN_PROGRAM && !defined DEBUGGER_SEES_C_MACROS | 55 | #if defined MAIN_PROGRAM && !defined DEBUGGER_SEES_C_MACROS |
| 49 | # define DEFINE_GDB_SYMBOL_BEGIN(type, id) type const id EXTERNALLY_VISIBLE | 56 | # define DEFINE_GDB_SYMBOL_BEGIN(type, id) type const id EXTERNALLY_VISIBLE |
| 50 | # define DEFINE_GDB_SYMBOL_END(id) = id; | 57 | # define DEFINE_GDB_SYMBOL_END(id) = id; |