aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2006-01-20 14:19:14 +0000
committerEli Zaretskii2006-01-20 14:19:14 +0000
commitea5f3ad489b0b5398645caebfc2225d2eaf9a746 (patch)
tree38091224aeb5d65d150d908f9546d40b4b0463c9
parent7662f8adffe19a10c934be87200dc9ac6d2eaa3a (diff)
downloademacs-ea5f3ad489b0b5398645caebfc2225d2eaf9a746.tar.gz
emacs-ea5f3ad489b0b5398645caebfc2225d2eaf9a746.zip
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
-rw-r--r--src/.gdbinit27
-rw-r--r--src/ChangeLog5
2 files changed, 20 insertions, 12 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 99dcbae7936..59d1b7a59f2 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -766,18 +766,21 @@ set args -geometry 80x40+0+0
766 766
767# People get bothered when they see messages about non-existent functions... 767# People get bothered when they see messages about non-existent functions...
768xgetptr Vsystem_type 768xgetptr Vsystem_type
769set $tem = (struct Lisp_Symbol *) $ptr 769# $ptr is NULL in temacs
770xgetptr $tem->xname 770if ($ptr != 0)
771set $tem = (struct Lisp_String *) $ptr 771 set $tem = (struct Lisp_Symbol *) $ptr
772set $tem = (char *) $tem->data 772 xgetptr $tem->xname
773 773 set $tem = (struct Lisp_String *) $ptr
774# Don't let abort actually run, as it will make stdio stop working and 774 set $tem = (char *) $tem->data
775# therefore the `pr' command above as well. 775
776if $tem[0] == 'w' && $tem[1] == 'i' && $tem[2] == 'n' && $tem[3] == 'd' 776 # Don't let abort actually run, as it will make stdio stop working and
777 # The windows-nt build replaces abort with its own function. 777 # therefore the `pr' command above as well.
778 break w32_abort 778 if $tem[0] == 'w' && $tem[1] == 'i' && $tem[2] == 'n' && $tem[3] == 'd'
779else 779 # The windows-nt build replaces abort with its own function.
780 break abort 780 break w32_abort
781 else
782 break abort
783 end
781end 784end
782 785
783# x_error_quitter is defined only on X. But window-system is set up 786# x_error_quitter is defined only on X. But window-system is set up
diff --git a/src/ChangeLog b/src/ChangeLog
index 276ee336537..b7f76bb6365 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12006-01-20 Eli Zaretskii <eliz@gnu.org>
2
3 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
4 if it is NULL.
5
12006-01-20 Kenichi Handa <handa@m17n.org> 62006-01-20 Kenichi Handa <handa@m17n.org>
2 7
3 * puresize.h (BASE_PURESIZE): Increment to 1190000. 8 * puresize.h (BASE_PURESIZE): Increment to 1190000.