Mercurial > emacs
comparison src/.gdbinit @ 83400:03934708f1e9
Merged from miles@gnu.org--gnu-2005 (patch 152-156, 642-654)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-642
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-643
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-644
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-645
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-646
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-647
lisp/gnus/ChangeLog: Remove duplicate entry
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-648
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-649
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-650
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-651
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-652
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-653
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-654
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-152
Update from CVS: lisp/mml.el (mml-preview): Doc fix.
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-153
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-154
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-155
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-156
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-440
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Fri, 18 Nov 2005 13:13:34 +0000 |
parents | 532e0a9335a9 4689a51b18f9 |
children | 69e184bbba16 |
comparison
equal
deleted
inserted
replaced
83399:2988c5a31dc1 | 83400:03934708f1e9 |
---|---|
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. | |
35 handle SIGTSTP nopass | |
36 | |
34 # Don't pass SIGALRM to Emacs. This makes problems when | 37 # Don't pass SIGALRM to Emacs. This makes problems when |
35 # debugging. | 38 # debugging. |
36 handle SIGALRM ignore | 39 handle SIGALRM ignore |
37 | 40 |
38 # $valmask and $tagmask are mask values set up by the xreload macro below. | 41 # $valmask and $tagmask are mask values set up by the xreload macro below. |
64 end | 67 end |
65 | 68 |
66 # Print out s-expressions | 69 # Print out s-expressions |
67 define pp | 70 define pp |
68 set $tmp = $arg0 | 71 set $tmp = $arg0 |
69 set debug_print ($tmp) | 72 set safe_debug_print ($tmp) |
70 end | 73 end |
71 document pp | 74 document pp |
72 Print the argument as an emacs s-expression | 75 Print the argument as an emacs s-expression |
73 Works only when an inferior emacs is executing. | 76 Works only when an inferior emacs is executing. |
77 end | |
78 | |
79 # Print out s-expressions from tool bar | |
80 define pp1 | |
81 set $tmp = $arg0 | |
82 echo $arg0 | |
83 printf " = " | |
84 set safe_debug_print ($tmp) | |
85 end | |
86 document pp1 | |
87 Print the argument as an emacs s-expression | |
88 Works only when an inferior emacs is executing. | |
89 For use on tool bar when debugging in Emacs | |
90 where the variable name would not otherwise | |
91 be recorded in the GUD buffer. | |
92 end | |
93 | |
94 # Print value of lisp variable | |
95 define pv | |
96 set $tmp = "$arg0" | |
97 set safe_debug_print ( find_symbol_value (intern ($tmp))) | |
98 end | |
99 document pv | |
100 Print the value of the lisp variable given as argument. | |
101 Works only when an inferior emacs is executing. | |
102 end | |
103 | |
104 # Print value of lisp variable | |
105 define pv1 | |
106 set $tmp = "$arg0" | |
107 echo $arg0 | |
108 printf " = " | |
109 set safe_debug_print (find_symbol_value (intern ($tmp))) | |
110 end | |
111 document pv1 | |
112 Print the value of the lisp variable given as argument. | |
113 Works only when an inferior emacs is executing. | |
114 For use on tool bar when debugging in Emacs | |
115 where the variable name would not otherwise | |
116 be recorded in the GUD buffer. | |
74 end | 117 end |
75 | 118 |
76 # Print out current buffer point and boundaries | 119 # Print out current buffer point and boundaries |
77 define ppt | 120 define ppt |
78 set $b = current_buffer | 121 set $b = current_buffer |
120 end | 163 end |
121 if ($it->header_line_p) | 164 if ($it->header_line_p) |
122 printf " HL" | 165 printf " HL" |
123 end | 166 end |
124 if ($it->n_overlay_strings > 0) | 167 if ($it->n_overlay_strings > 0) |
125 printf " nov=%d" | 168 printf " nov=%d", $it->n_overlay_strings |
126 end | 169 end |
127 if ($it->sp != 0) | 170 if ($it->sp != 0) |
128 printf " sp=%d", $it->sp | 171 printf " sp=%d", $it->sp |
129 end | 172 end |
130 if ($it->what == IT_CHARACTER) | 173 if ($it->what == IT_CHARACTER) |
670 Print a backtrace of Lisp function calls from backtrace_list. | 713 Print a backtrace of Lisp function calls from backtrace_list. |
671 Set a breakpoint at Fsignal and call this to see from where | 714 Set a breakpoint at Fsignal and call this to see from where |
672 an error was signaled. | 715 an error was signaled. |
673 end | 716 end |
674 | 717 |
718 # Show Lisp backtrace after normal backtrace. | |
719 define hookpost-backtrace | |
720 set $bt = backtrace_list | |
721 if $bt | |
722 echo \n | |
723 echo Lisp Backtrace:\n | |
724 xbacktrace | |
725 end | |
726 end | |
727 | |
675 define xreload | 728 define xreload |
676 set $tagmask = (((long)1 << gdb_gctypebits) - 1) | 729 set $tagmask = (((long)1 << gdb_gctypebits) - 1) |
677 set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)1 << gdb_valbits) - 1 | 730 set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)1 << gdb_valbits) - 1 |
678 end | 731 end |
679 document xreload | 732 document xreload |