changeset 68024:75f9e1ee6fa6

Avoid a warning message when x_error_quitter is not compiled in.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 04 Jan 2006 18:11:51 +0000
parents ff3192098d4e
children e8dc530d7ee1
files src/.gdbinit
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/.gdbinit	Wed Jan 04 17:52:40 2006 +0000
+++ b/src/.gdbinit	Wed Jan 04 18:11:51 2006 +0000
@@ -782,7 +782,15 @@
   # 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...
-  break x_error_quitter
+  xgetptr Vwindow_system
+  set $tem = (struct Lisp_Symbol *) $ptr
+  xgetptr $tem->xname
+  set $tem = (struct Lisp_String *) $ptr
+  set $tem = (char *) $tem->data
+  # x_error_quitter is defined only on X
+  if $tem[0] == 'x' && $tem[1] == '\0'
+    break x_error_quitter
+  end
 end
 
 # arch-tag: 12f34321-7bfa-4240-b77a-3cd3a1696dfe