Mercurial > emacs
comparison src/.gdbinit @ 68297:9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 20 Jan 2006 14:18:38 +0000 |
parents | 0034c3d92000 |
children | 3bd95f4f2941 9b150bc96d33 5b7d410e31f9 |
comparison
equal
deleted
inserted
replaced
68296:325cc3e47519 | 68297:9b3bace59343 |
---|---|
764 show environment TERM | 764 show environment TERM |
765 set args -geometry 80x40+0+0 | 765 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... |
768 xgetptr Vsystem_type | 768 xgetptr Vsystem_type |
769 set $tem = (struct Lisp_Symbol *) $ptr | 769 # $ptr is NULL in temacs |
770 xgetptr $tem->xname | 770 if ($ptr != 0) |
771 set $tem = (struct Lisp_String *) $ptr | 771 set $tem = (struct Lisp_Symbol *) $ptr |
772 set $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 |
776 if $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' |
779 else | 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 | |
781 end | 784 end |
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 |
784 # only at run time, during Emacs startup, so we need to defer setting | 787 # only at run time, during Emacs startup, so we need to defer setting |
785 # the breakpoint. init_sys_modes is the first function called on | 788 # the breakpoint. init_sys_modes is the first function called on |