diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-03-27 21:51:39 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-03-27 21:51:57 -0700 |
commit | 7f129f2ecfbdded5c31e9d9fc8bf11ce0e017000 (patch) | |
tree | e9631b8b6bebb4b1315c7fbacd5b81d1264ca8fb /src/.gdbinit | |
parent | 81795bb71394aac6d7f6f7fd2656b2eb79a39a4d (diff) | |
download | emacs-7f129f2ecfbdded5c31e9d9fc8bf11ce0e017000.tar.gz |
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/.gdbinit')
-rw-r--r-- | src/.gdbinit | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index 7553f07845c..b8b303104f5 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -1219,24 +1219,12 @@ show environment TERM # terminate_due_to_signal when an assertion failure is non-fatal. break terminate_due_to_signal -# x_error_quitter is defined only on X. But window-system is set up -# only at run time, during Emacs startup, so we need to defer setting -# the breakpoint. init_sys_modes is the first function called on -# every platform after init_display, where window-system is set. -tbreak init_sys_modes -commands - silent - xsymname globals.f_Vinitial_window_system - xgetptr $symname - set $tem = (struct Lisp_String *) $ptr - set $tem = (char *) $tem->u.s.data - # If we are running in synchronous mode, we want a chance to look - # around before Emacs exits. Perhaps we should put the break - # somewhere else instead... - if $tem[0] == 'x' && $tem[1] == '\0' - break x_error_quitter - end - continue +# x_error_quitter is defined only if defined_HAVE_X_WINDOWS. +# If we are running in synchronous mode, we want a chance to look +# around before Emacs exits. Perhaps we should put the break +# somewhere else instead... +if defined_HAVE_X_WINDOWS + break x_error_quitter end |