comparison src/.gdbinit @ 67020:2385088bbb84

(nextcons, xcdr, xfloat): Update for changes in Lisp_Cons and Lisp_Float.
author Andreas Schwab <schwab@suse.de>
date Sat, 19 Nov 2005 17:13:07 +0000
parents 4689a51b18f9
children e40cac65496b
comparison
equal deleted inserted replaced
67019:53c3a64c4d4f 67020:2385088bbb84
1 # Copyright (C) 1992, 93, 94, 95, 96, 97, 1998, 2000, 01, 2004 1 # Copyright (C) 1992, 93, 94, 95, 96, 97, 1998, 2000, 01, 2004, 2005
2 # Free Software Foundation, Inc. 2 # Free Software Foundation, Inc.
3 # 3 #
4 # This file is part of GNU Emacs. 4 # This file is part of GNU Emacs.
5 # 5 #
6 # GNU Emacs is free software; you can redistribute it and/or modify 6 # GNU Emacs is free software; you can redistribute it and/or modify
27 27
28 # Don't enter GDB when user types C-g to quit. 28 # Don't enter GDB when user types C-g to quit.
29 # This has one unfortunate effect: you can't type C-c 29 # This has one unfortunate effect: you can't type C-c
30 # at the GDB to stop Emacs, when using X. 30 # at the GDB to stop Emacs, when using X.
31 # However, C-z works just as well in that case. 31 # However, C-z works just as well in that case.
32 handle 2 noprint pass 32 #handle 2 noprint pass
33 33
34 # Make it work like SIGINT normally does. 34 # Make it work like SIGINT normally does.
35 handle SIGTSTP nopass 35 handle SIGTSTP nopass
36 36
37 # Don't pass SIGALRM to Emacs. This makes problems when 37 # Don't pass SIGALRM to Emacs. This makes problems when
626 document xcons 626 document xcons
627 Print the contents of $, assuming it is an Emacs Lisp cons. 627 Print the contents of $, assuming it is an Emacs Lisp cons.
628 end 628 end
629 629
630 define nextcons 630 define nextcons
631 p $.cdr 631 p $.u.cdr
632 xcons 632 xcons
633 end 633 end
634 document nextcons 634 document nextcons
635 Print the contents of the next cell in a list. 635 Print the contents of the next cell in a list.
636 This assumes that the last thing you printed was a cons cell contents 636 This assumes that the last thing you printed was a cons cell contents
646 end 646 end
647 647
648 define xcdr 648 define xcdr
649 xgetptr $ 649 xgetptr $
650 xgettype $ 650 xgettype $
651 print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->cdr : 0) 651 print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->u.cdr : 0)
652 end 652 end
653 document xcdr 653 document xcdr
654 Print the cdr of $, assuming it is an Emacs Lisp pair. 654 Print the cdr of $, assuming it is an Emacs Lisp pair.
655 end 655 end
656 656
657 define xfloat 657 define xfloat
658 xgetptr $ 658 xgetptr $
659 print ((struct Lisp_Float *) $ptr)->data 659 print ((struct Lisp_Float *) $ptr)->u.data
660 end 660 end
661 document xfloat 661 document xfloat
662 Print $ assuming it is a lisp floating-point number. 662 Print $ assuming it is a lisp floating-point number.
663 end 663 end
664 664
760 set print pretty on 760 set print pretty on
761 set print sevenbit-strings 761 set print sevenbit-strings
762 762
763 show environment DISPLAY 763 show environment DISPLAY
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 # Don't let abort actually run, as it will make 767 # Don't let abort actually run, as it will make
768 # stdio stop working and therefore the `pr' command above as well. 768 # stdio stop working and therefore the `pr' command above as well.
769 break abort 769 break abort
770 770