]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
authorEli Zaretskii <eliz@gnu.org>
Fri, 20 Jan 2006 14:19:14 +0000 (14:19 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 20 Jan 2006 14:19:14 +0000 (14:19 +0000)
src/.gdbinit
src/ChangeLog

index 99dcbae793681a3928695ee4c846849e9e3a6ca0..59d1b7a59f235920c3cddf5e91e1c4246d9547a4 100644 (file)
@@ -766,18 +766,21 @@ set args -geometry 80x40+0+0
 
 # People get bothered when they see messages about non-existent functions...
 xgetptr Vsystem_type
-set $tem = (struct Lisp_Symbol *) $ptr
-xgetptr $tem->xname
-set $tem = (struct Lisp_String *) $ptr
-set $tem = (char *) $tem->data
-
-# Don't let abort actually run, as it will make stdio stop working and
-# therefore the `pr' command above as well.
-if $tem[0] == 'w' && $tem[1] == 'i' && $tem[2] == 'n' && $tem[3] == 'd'
-  # The windows-nt build replaces abort with its own function.
-  break w32_abort
-else
-  break abort
+# $ptr is NULL in temacs
+if ($ptr != 0)
+  set $tem = (struct Lisp_Symbol *) $ptr
+  xgetptr $tem->xname
+  set $tem = (struct Lisp_String *) $ptr
+  set $tem = (char *) $tem->data
+
+  # Don't let abort actually run, as it will make stdio stop working and
+  # therefore the `pr' command above as well.
+  if $tem[0] == 'w' && $tem[1] == 'i' && $tem[2] == 'n' && $tem[3] == 'd'
+    # The windows-nt build replaces abort with its own function.
+    break w32_abort
+  else
+    break abort
+  end
 end
 
 # x_error_quitter is defined only on X.  But window-system is set up
index 276ee336537601999c51ae166ab1665eef3436d6..b7f76bb6365193a4abf72469d53784215cee5e58 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-20  Eli Zaretskii  <eliz@gnu.org>
+
+       * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
+       if it is NULL.
+
 2006-01-20  Kenichi Handa  <handa@m17n.org>
 
        * puresize.h (BASE_PURESIZE): Increment to 1190000.