diff options
| author | Paul Eggert | 2019-03-27 21:51:39 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-03-27 21:51:57 -0700 |
| commit | 7f129f2ecfbdded5c31e9d9fc8bf11ce0e017000 (patch) | |
| tree | e9631b8b6bebb4b1315c7fbacd5b81d1264ca8fb /src/alloc.c | |
| parent | 81795bb71394aac6d7f6f7fd2656b2eb79a39a4d (diff) | |
| download | emacs-7f129f2ecfbdded5c31e9d9fc8bf11ce0e017000.tar.gz emacs-7f129f2ecfbdded5c31e9d9fc8bf11ce0e017000.zip | |
Simpler way to export HAVE_X_WINDOWS to GDB
* src/.gdbinit: Simplify by removing dependency on globals
implementation. This is useful for a future performance
improvement that I have in mind.
* src/alloc.c (enum defined_HAVE_X_WINDOWS, defined_HAVE_X_WINDOWS):
New enum and constant.
(gdb_make_enums_visible) [__GNUC__]: Use it, to make
defined_HAVE_X_WINDOWS visible to GDB.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 3a8bd30c34b..e48807c49ad 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -7649,6 +7649,12 @@ than 2**N, where N is this variable's value. N should be nonnegative. */); | |||
| 7649 | defsubr (&Ssuspicious_object); | 7649 | defsubr (&Ssuspicious_object); |
| 7650 | } | 7650 | } |
| 7651 | 7651 | ||
| 7652 | #ifdef HAVE_X_WINDOWS | ||
| 7653 | enum defined_HAVE_X_WINDOWS { defined_HAVE_X_WINDOWS = true }; | ||
| 7654 | #else | ||
| 7655 | enum defined_HAVE_X_WINDOWS { defined_HAVE_X_WINDOWS = false }; | ||
| 7656 | #endif | ||
| 7657 | |||
| 7652 | /* When compiled with GCC, GDB might say "No enum type named | 7658 | /* When compiled with GCC, GDB might say "No enum type named |
| 7653 | pvec_type" if we don't have at least one symbol with that type, and | 7659 | pvec_type" if we don't have at least one symbol with that type, and |
| 7654 | then xbacktrace could fail. Similarly for the other enums and | 7660 | then xbacktrace could fail. Similarly for the other enums and |
| @@ -7667,5 +7673,6 @@ union | |||
| 7667 | enum MAX_ALLOCA MAX_ALLOCA; | 7673 | enum MAX_ALLOCA MAX_ALLOCA; |
| 7668 | enum More_Lisp_Bits More_Lisp_Bits; | 7674 | enum More_Lisp_Bits More_Lisp_Bits; |
| 7669 | enum pvec_type pvec_type; | 7675 | enum pvec_type pvec_type; |
| 7676 | enum defined_HAVE_X_WINDOWS defined_HAVE_X_WINDOWS; | ||
| 7670 | } const EXTERNALLY_VISIBLE gdb_make_enums_visible = {0}; | 7677 | } const EXTERNALLY_VISIBLE gdb_make_enums_visible = {0}; |
| 7671 | #endif /* __GNUC__ */ | 7678 | #endif /* __GNUC__ */ |