diff options
| author | Yuuki Harano | 2021-08-16 23:01:11 +0900 |
|---|---|---|
| committer | Yuuki Harano | 2021-08-16 23:01:11 +0900 |
| commit | 4c49ec7f865bdad1629d2f125f71f4e506b258f2 (patch) | |
| tree | a1e9ba36a90bf9b8e16118e7f99b2d4e7e7b884e /src | |
| parent | 2e561ab2276820896e6c1dd13406bfe9047bd1dc (diff) | |
| download | emacs-4c49ec7f865bdad1629d2f125f71f4e506b258f2.tar.gz emacs-4c49ec7f865bdad1629d2f125f71f4e506b258f2.zip | |
Make PGTK's additions conditioinal
* src/.gdbinit: Make them enclosed in condition.
* src/alloc.c: Define defined_HAVE_PGTK and make it externally visible.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 8 | ||||
| -rw-r--r-- | src/alloc.c | 7 |
2 files changed, 13 insertions, 2 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index 53e17df6364..68db1ff3ea4 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -42,7 +42,9 @@ handle SIGUSR2 noprint pass | |||
| 42 | handle SIGALRM ignore | 42 | handle SIGALRM ignore |
| 43 | 43 | ||
| 44 | # On selection send failed. | 44 | # On selection send failed. |
| 45 | handle SIGPIPE nostop noprint | 45 | if defined_HAVE_PGTK |
| 46 | handle SIGPIPE nostop noprint | ||
| 47 | end | ||
| 46 | 48 | ||
| 47 | # Use $bugfix so that the value isn't a constant. | 49 | # Use $bugfix so that the value isn't a constant. |
| 48 | # Using a constant runs into GDB bugs sometimes. | 50 | # Using a constant runs into GDB bugs sometimes. |
| @@ -1227,7 +1229,9 @@ set print pretty on | |||
| 1227 | set print sevenbit-strings | 1229 | set print sevenbit-strings |
| 1228 | 1230 | ||
| 1229 | show environment DISPLAY | 1231 | show environment DISPLAY |
| 1230 | show environment WAYLAND_DISPLAY | 1232 | if defined_HAVE_PGTK |
| 1233 | show environment WAYLAND_DISPLAY | ||
| 1234 | end | ||
| 1231 | show environment TERM | 1235 | show environment TERM |
| 1232 | 1236 | ||
| 1233 | # When debugging, it is handy to be able to "return" from | 1237 | # When debugging, it is handy to be able to "return" from |
diff --git a/src/alloc.c b/src/alloc.c index a17488ee1d0..ff3670eeb1d 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -7709,6 +7709,12 @@ enum defined_HAVE_X_WINDOWS { defined_HAVE_X_WINDOWS = true }; | |||
| 7709 | enum defined_HAVE_X_WINDOWS { defined_HAVE_X_WINDOWS = false }; | 7709 | enum defined_HAVE_X_WINDOWS { defined_HAVE_X_WINDOWS = false }; |
| 7710 | #endif | 7710 | #endif |
| 7711 | 7711 | ||
| 7712 | #ifdef HAVE_PGTK | ||
| 7713 | enum defined_HAVE_PGTK { defined_HAVE_PGTK = true }; | ||
| 7714 | #else | ||
| 7715 | enum defined_HAVE_PGTK { defined_HAVE_PGTK = false }; | ||
| 7716 | #endif | ||
| 7717 | |||
| 7712 | /* When compiled with GCC, GDB might say "No enum type named | 7718 | /* When compiled with GCC, GDB might say "No enum type named |
| 7713 | pvec_type" if we don't have at least one symbol with that type, and | 7719 | pvec_type" if we don't have at least one symbol with that type, and |
| 7714 | then xbacktrace could fail. Similarly for the other enums and | 7720 | then xbacktrace could fail. Similarly for the other enums and |
| @@ -7728,5 +7734,6 @@ union | |||
| 7728 | enum More_Lisp_Bits More_Lisp_Bits; | 7734 | enum More_Lisp_Bits More_Lisp_Bits; |
| 7729 | enum pvec_type pvec_type; | 7735 | enum pvec_type pvec_type; |
| 7730 | enum defined_HAVE_X_WINDOWS defined_HAVE_X_WINDOWS; | 7736 | enum defined_HAVE_X_WINDOWS defined_HAVE_X_WINDOWS; |
| 7737 | enum defined_HAVE_PGTK defined_HAVE_PGTK; | ||
| 7731 | } const EXTERNALLY_VISIBLE gdb_make_enums_visible = {0}; | 7738 | } const EXTERNALLY_VISIBLE gdb_make_enums_visible = {0}; |
| 7732 | #endif /* __GNUC__ */ | 7739 | #endif /* __GNUC__ */ |