Mercurial > emacs
annotate src/.gdbinit @ 69383:d42f434529e3
(octave-indent-for-comment): Behave according to do string.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 11 Mar 2006 15:10:32 +0000 |
parents | faf10626ffee |
children | 7a7755ff46ed 428d132b4028 d57ee9eab157 |
rev | line source |
---|---|
68651
3bd95f4f2941
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
68297
diff
changeset
|
1 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, |
3bd95f4f2941
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
68297
diff
changeset
|
2 # 2004, 2005, 2006 Free Software Foundation, Inc. |
36219 | 3 # |
4 # This file is part of GNU Emacs. | |
5 # | |
6 # GNU Emacs is free software; you can redistribute it and/or modify | |
7 # it under the terms of the GNU General Public License as published by | |
8 # the Free Software Foundation; either version 2, or (at your option) | |
9 # any later version. | |
10 # | |
11 # GNU Emacs is distributed in the hope that it will be useful, | |
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 # GNU General Public License for more details. | |
15 # | |
16 # You should have received a copy of the GNU General Public License | |
17 # along with GNU Emacs; see the file COPYING. If not, write to the | |
64084 | 18 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 # Boston, MA 02110-1301, USA. | |
36219 | 20 |
13359
4c60f92bdaa6
Do `set main' to make gdb_valbits etc. available.
Richard M. Stallman <rms@gnu.org>
parents:
12278
diff
changeset
|
21 # Force loading of symbols, enough to give us gdb_valbits etc. |
4c60f92bdaa6
Do `set main' to make gdb_valbits etc. available.
Richard M. Stallman <rms@gnu.org>
parents:
12278
diff
changeset
|
22 set main |
4c60f92bdaa6
Do `set main' to make gdb_valbits etc. available.
Richard M. Stallman <rms@gnu.org>
parents:
12278
diff
changeset
|
23 |
15536 | 24 # Find lwlib source files too. |
25 dir ../lwlib | |
34876
8dbc92d11de2
Comment out the line pointing to the Lesstif source
Gerd Moellmann <gerd@gnu.org>
parents:
32812
diff
changeset
|
26 #dir /gd/gnu/lesstif-0.89.9/lib/Xm |
15536 | 27 |
20672 | 28 # Don't enter GDB when user types C-g to quit. |
29 # This has one unfortunate effect: you can't type C-c | |
30 # at the GDB to stop Emacs, when using X. | |
31 # However, C-z works just as well in that case. | |
67027 | 32 handle 2 noprint pass |
20672 | 33 |
66903
4689a51b18f9
Make SIGTSTP work like SIGINT normally does.
Nick Roberts <nickrob@snap.net.nz>
parents:
66817
diff
changeset
|
34 # Make it work like SIGINT normally does. |
4689a51b18f9
Make SIGTSTP work like SIGINT normally does.
Nick Roberts <nickrob@snap.net.nz>
parents:
66817
diff
changeset
|
35 handle SIGTSTP nopass |
4689a51b18f9
Make SIGTSTP work like SIGINT normally does.
Nick Roberts <nickrob@snap.net.nz>
parents:
66817
diff
changeset
|
36 |
30636 | 37 # Don't pass SIGALRM to Emacs. This makes problems when |
38 # debugging. | |
39 handle SIGALRM ignore | |
40 | |
59660
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
41 # $valmask and $tagmask are mask values set up by the xreload macro below. |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
42 |
59660
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
43 # Use $bugfix so that the value isn't a constant. |
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
44 # Using a constant runs into GDB bugs sometimes. |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
45 define xgetptr |
59660
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
46 set $bugfix = $arg0 |
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
47 set $ptr = (gdb_use_union ? $bugfix.u.val : $bugfix & $valmask) | gdb_data_seg_bits |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
48 end |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
49 |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
50 define xgetint |
59660
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
51 set $bugfix = $arg0 |
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
52 set $int = gdb_use_union ? $bugfix.s.val : (gdb_use_lsb ? $bugfix : $bugfix << gdb_gctypebits) >> gdb_gctypebits |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
53 end |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
54 |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
55 define xgettype |
59660
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
56 set $bugfix = $arg0 |
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
57 set $type = gdb_use_union ? $bugfix.s.type : (enum Lisp_Type) (gdb_use_lsb ? $bugfix & $tagmask : $bugfix >> gdb_valbits) |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
58 end |
11872
a28bd38b2ff3
gdb_lisp_params to get storage layout info.
Karl Heuer <kwzh@gnu.org>
parents:
11006
diff
changeset
|
59 |
567 | 60 # Set up something to print out s-expressions. |
61 define pr | |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
62 set debug_print ($) |
567 | 63 end |
64 document pr | |
65 Print the emacs s-expression which is $. | |
66 Works only when an inferior emacs is executing. | |
67 end | |
68 | |
57306
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
69 # Print out s-expressions |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
70 define pp |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
71 set $tmp = $arg0 |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
72 set safe_debug_print ($tmp) |
57306
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
73 end |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
74 document pp |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
75 Print the argument as an emacs s-expression |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
76 Works only when an inferior emacs is executing. |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
77 end |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
78 |
66772
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
79 # Print out s-expressions from tool bar |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
80 define pp1 |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
81 set $tmp = $arg0 |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
82 echo $arg0 |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
83 printf " = " |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
84 set safe_debug_print ($tmp) |
66772
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
85 end |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
86 document pp1 |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
87 Print the argument as an emacs s-expression |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
88 Works only when an inferior emacs is executing. |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
89 For use on tool bar when debugging in Emacs |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
90 where the variable name would not otherwise |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
91 be recorded in the GUD buffer. |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
92 end |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
93 |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
94 # Print value of lisp variable |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
95 define pv |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
96 set $tmp = "$arg0" |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
97 set safe_debug_print ( find_symbol_value (intern ($tmp))) |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
98 end |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
99 document pv |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
100 Print the value of the lisp variable given as argument. |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
101 Works only when an inferior emacs is executing. |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
102 end |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
103 |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
104 # Print value of lisp variable |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
105 define pv1 |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
106 set $tmp = "$arg0" |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
107 echo $arg0 |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
108 printf " = " |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
109 set safe_debug_print (find_symbol_value (intern ($tmp))) |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
110 end |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
111 document pv1 |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
112 Print the value of the lisp variable given as argument. |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
113 Works only when an inferior emacs is executing. |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
114 For use on tool bar when debugging in Emacs |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
115 where the variable name would not otherwise |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
116 be recorded in the GUD buffer. |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
117 end |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
118 |
57911 | 119 # Print out current buffer point and boundaries |
120 define ppt | |
121 set $b = current_buffer | |
122 set $t = $b->text | |
123 printf "BUF PT: %d", $b->pt | |
124 if ($b->pt != $b->pt_byte) | |
125 printf "[%d]", $b->pt_byte | |
126 end | |
127 printf " of 1..%d", $t->z | |
128 if ($t->z != $t->z_byte) | |
129 printf "[%d]", $t->z_byte | |
130 end | |
131 if ($b->begv != 1 || $b->zv != $t->z) | |
132 printf " NARROW=%d..%d", $b->begv, $b->zv | |
133 if ($b->begv != $b->begv_byte || $b->zv != $b->zv_byte) | |
134 printf " [%d..%d]", $b->begv_byte, $b->zv_byte | |
135 end | |
136 end | |
137 printf " GAP: %d", $t->gpt | |
138 if ($t->gpt != $t->gpt_byte) | |
139 printf "[%d]", $t->gpt_byte | |
140 end | |
141 printf " SZ=%d\n", $t->gap_size | |
142 end | |
143 document ppt | |
144 Print point, beg, end, narrow, and gap for current buffer. | |
145 end | |
146 | |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
147 # Print out iterator given as first arg |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
148 define pitx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
149 set $it = $arg0 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
150 printf "cur=%d", $it->current.pos.charpos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
151 if ($it->current.pos.charpos != $it->current.pos.bytepos) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
152 printf "[%d]", $it->current.pos.bytepos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
153 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
154 printf " start=%d", $it->start.pos.charpos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
155 if ($it->start.pos.charpos != $it->start.pos.bytepos) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
156 printf "[%d]", $it->start.pos.bytepos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
157 end |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
158 printf " end=%d", $it->end_charpos |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
159 printf " stop=%d", $it->stop_charpos |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
160 printf " face=%d", $it->face_id |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
161 if ($it->multibyte_p) |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
162 printf " MB" |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
163 end |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
164 if ($it->header_line_p) |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
165 printf " HL" |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
166 end |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
167 if ($it->n_overlay_strings > 0) |
66817
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
168 printf " nov=%d", $it->n_overlay_strings |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
169 end |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
170 if ($it->sp != 0) |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
171 printf " sp=%d", $it->sp |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
172 end |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
173 if ($it->what == IT_CHARACTER) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
174 if ($it->len == 1 && $it->c >= ' ' && it->c < 255) |
64321
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
175 printf " ch='%c'", $it->c |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
176 else |
64321
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
177 printf " ch=[%d,%d]", $it->c, $it->len |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
178 end |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
179 else |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
180 if ($it->what == IT_IMAGE) |
64321
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
181 printf " IMAGE=%d", $it->image_id |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
182 else |
64321
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
183 printf " " |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
184 output $it->what |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
185 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
186 end |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
187 if ($it->method != GET_FROM_BUFFER) |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
188 printf " next=" |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
189 output $it->method |
64321
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
190 if ($it->method == GET_FROM_STRING) |
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
191 printf "[%d]", $it->current.string_pos.charpos |
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
192 end |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
193 end |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
194 printf "\n" |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
195 if ($it->region_beg_charpos >= 0) |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
196 printf "reg=%d-%d ", $it->region_beg_charpos, $it->region_end_charpos |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
197 end |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
198 printf "vpos=%d hpos=%d", $it->vpos, $it->hpos, |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
199 printf " y=%d lvy=%d", $it->current_y, $it->last_visible_y |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
200 printf " x=%d vx=%d-%d", $it->current_x, $it->first_visible_x, $it->last_visible_x |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
201 printf " a+d=%d+%d=%d", $it->ascent, $it->descent, $it->ascent+$it->descent |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
202 printf " max=%d+%d=%d", $it->max_ascent, $it->max_descent, $it->max_ascent+$it->max_descent |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
203 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
204 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
205 document pitx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
206 Pretty print a display iterator. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
207 Take one arg, an iterator object or pointer. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
208 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
209 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
210 define pit |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
211 pitx it |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
212 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
213 document pit |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
214 Pretty print the display iterator it. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
215 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
216 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
217 define prowx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
218 set $row = $arg0 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
219 printf "y=%d x=%d pwid=%d", $row->y, $row->x, $row->pixel_width |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
220 printf " a+d=%d+%d=%d", $row->ascent, $row->height-$row->ascent, $row->height |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
221 printf " phys=%d+%d=%d", $row->phys_ascent, $row->phys_height-$row->phys_ascent, $row->phys_height |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
222 printf " vis=%d", $row->visible_height |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
223 printf " L=%d T=%d R=%d", $row->used[0], $row->used[1], $row->used[2] |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
224 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
225 printf "start=%d end=%d", $row->start.pos.charpos, $row->end.pos.charpos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
226 if ($row->enabled_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
227 printf " ENA" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
228 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
229 if ($row->displays_text_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
230 printf " DISP" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
231 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
232 if ($row->mode_line_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
233 printf " MODEL" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
234 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
235 if ($row->continued_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
236 printf " CONT" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
237 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
238 if ($row-> truncated_on_left_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
239 printf " TRUNC:L" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
240 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
241 if ($row-> truncated_on_right_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
242 printf " TRUNC:R" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
243 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
244 if ($row->starts_in_middle_of_char_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
245 printf " STARTMID" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
246 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
247 if ($row->ends_in_middle_of_char_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
248 printf " ENDMID" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
249 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
250 if ($row->ends_in_newline_from_string_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
251 printf " ENDNLFS" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
252 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
253 if ($row->ends_at_zv_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
254 printf " ENDZV" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
255 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
256 if ($row->overlapped_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
257 printf " OLAPD" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
258 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
259 if ($row->overlapping_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
260 printf " OLAPNG" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
261 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
262 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
263 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
264 document prowx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
265 Pretty print information about glyph_row. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
266 Takes one argument, a row object or pointer. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
267 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
268 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
269 define prow |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
270 prowx row |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
271 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
272 document prow |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
273 Pretty print information about glyph_row in row. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
274 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
275 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
276 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
277 define pcursorx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
278 set $cp = $arg0 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
279 printf "y=%d x=%d vpos=%d hpos=%d", $cp->y, $cp->x, $cp->vpos, $cp->hpos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
280 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
281 document pcursorx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
282 Pretty print a window cursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
283 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
284 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
285 define pcursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
286 printf "output: " |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
287 pcursorx output_cursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
288 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
289 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
290 document pcursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
291 Pretty print the output_cursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
292 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
293 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
294 define pwinx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
295 set $w = $arg0 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
296 xgetint $w->sequence_number |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
297 if ($w->mini_p != Qnil) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
298 printf "Mini " |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
299 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
300 printf "Window %d ", $int |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
301 xgetptr $w->buffer |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
302 set $tem = (struct buffer *) $ptr |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
303 xgetptr $tem->name |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
304 printf "%s", ((struct Lisp_String *) $ptr)->data |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
305 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
306 xgetptr $w->start |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
307 set $tem = (struct Lisp_Marker *) $ptr |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
308 printf "start=%d end:", $tem->charpos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
309 if ($w->window_end_valid != Qnil) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
310 xgetint $w->window_end_pos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
311 printf "pos=%d", $int |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
312 xgetint $w->window_end_vpos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
313 printf " vpos=%d", $int |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
314 else |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
315 printf "invalid" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
316 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
317 printf " vscroll=%d", $w->vscroll |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
318 if ($w->force_start != Qnil) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
319 printf " FORCE_START" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
320 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
321 if ($w->must_be_updated_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
322 printf " MUST_UPD" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
323 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
324 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
325 printf "cursor: " |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
326 pcursorx $w->cursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
327 printf " phys: " |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
328 pcursorx $w->phys_cursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
329 if ($w->phys_cursor_on_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
330 printf " ON" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
331 else |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
332 printf " OFF" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
333 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
334 printf " blk=" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
335 if ($w->last_cursor_off_p != $w->cursor_off_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
336 if ($w->last_cursor_off_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
337 printf "ON->" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
338 else |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
339 printf "OFF->" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
340 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
341 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
342 if ($w->cursor_off_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
343 printf "ON" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
344 else |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
345 printf "OFF" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
346 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
347 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
348 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
349 document pwinx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
350 Pretty print a window structure. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
351 Takes one argument, a pointer to a window structure |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
352 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
353 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
354 define pwin |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
355 pwinx w |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
356 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
357 document pwin |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
358 Pretty print window structure w. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
359 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
360 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
361 |
567 | 362 define xtype |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
363 xgettype $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
364 output $type |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
365 echo \n |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
366 if $type == Lisp_Misc |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
367 xmisctype |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
368 else |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
369 if $type == Lisp_Vectorlike |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
370 xvectype |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
371 end |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
372 end |
567 | 373 end |
638 | 374 document xtype |
7962 | 375 Print the type of $, assuming it is an Emacs Lisp value. |
10299
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
376 If the first type printed is Lisp_Vector or Lisp_Misc, |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
377 a second line gives the more precise type. |
10299
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
378 end |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
379 |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
380 define xvectype |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
381 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
382 set $size = ((struct Lisp_Vector *) $ptr)->size |
55609
253acecd37f9
Mask off gdb_array_mark_flag from vector sizes.
Andreas Schwab <schwab@suse.de>
parents:
54690
diff
changeset
|
383 output ($size & PVEC_FLAG) ? (enum pvec_type) ($size & PVEC_TYPE_MASK) : $size & ~gdb_array_mark_flag |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
384 echo \n |
10299
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
385 end |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
386 document xvectype |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
387 Print the size or vector subtype of $, assuming it is a vector or pseudovector. |
10299
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
388 end |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
389 |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
390 define xmisctype |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
391 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
392 output (enum Lisp_Misc_Type) (((struct Lisp_Free *) $ptr)->type) |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
393 echo \n |
10299
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
394 end |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
395 document xmisctype |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
396 Print the specific type of $, assuming it is some misc type. |
638 | 397 end |
567 | 398 |
399 define xint | |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
400 xgetint $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
401 print $int |
567 | 402 end |
638 | 403 document xint |
7962 | 404 Print $, assuming it is an Emacs Lisp integer. This gets the sign right. |
638 | 405 end |
567 | 406 |
407 define xptr | |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
408 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
409 print (void *) $ptr |
567 | 410 end |
638 | 411 document xptr |
7962 | 412 Print the pointer portion of $, assuming it is an Emacs Lisp value. |
638 | 413 end |
567 | 414 |
415 define xmarker | |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
416 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
417 print (struct Lisp_Marker *) $ptr |
567 | 418 end |
638 | 419 document xmarker |
7962 | 420 Print $ as a marker pointer, assuming it is an Emacs Lisp marker value. |
638 | 421 end |
567 | 422 |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
423 define xoverlay |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
424 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
425 print (struct Lisp_Overlay *) $ptr |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
426 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
427 document xoverlay |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
428 Print $ as a overlay pointer, assuming it is an Emacs Lisp overlay value. |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
429 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
430 |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
431 define xmiscfree |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
432 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
433 print (struct Lisp_Free *) $ptr |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
434 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
435 document xmiscfree |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
436 Print $ as a misc free-cell pointer, assuming it is an Emacs Lisp Misc value. |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
437 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
438 |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
439 define xintfwd |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
440 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
441 print (struct Lisp_Intfwd *) $ptr |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
442 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
443 document xintfwd |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
444 Print $ as an integer forwarding pointer, assuming it is an Emacs Lisp Misc value. |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
445 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
446 |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
447 define xboolfwd |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
448 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
449 print (struct Lisp_Boolfwd *) $ptr |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
450 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
451 document xboolfwd |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
452 Print $ as a boolean forwarding pointer, assuming it is an Emacs Lisp Misc value. |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
453 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
454 |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
455 define xobjfwd |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
456 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
457 print (struct Lisp_Objfwd *) $ptr |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
458 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
459 document xobjfwd |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
460 Print $ as an object forwarding pointer, assuming it is an Emacs Lisp Misc value. |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
461 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
462 |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
463 define xbufobjfwd |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
464 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
465 print (struct Lisp_Buffer_Objfwd *) $ptr |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
466 end |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
467 document xbufobjfwd |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
468 Print $ as a buffer-local object forwarding pointer, assuming it is an Emacs Lisp Misc value. |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
469 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
470 |
11006
2aa4135eee50
(xkbobjfwd): Renamed from xdispobjfwd.
Karl Heuer <kwzh@gnu.org>
parents:
10582
diff
changeset
|
471 define xkbobjfwd |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
472 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
473 print (struct Lisp_Kboard_Objfwd *) $ptr |
10582 | 474 end |
11006
2aa4135eee50
(xkbobjfwd): Renamed from xdispobjfwd.
Karl Heuer <kwzh@gnu.org>
parents:
10582
diff
changeset
|
475 document xkbobjfwd |
2aa4135eee50
(xkbobjfwd): Renamed from xdispobjfwd.
Karl Heuer <kwzh@gnu.org>
parents:
10582
diff
changeset
|
476 Print $ as a kboard-local object forwarding pointer, assuming it is an Emacs Lisp Misc value. |
10582 | 477 end |
478 | |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
479 define xbuflocal |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
480 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
481 print (struct Lisp_Buffer_Local_Value *) $ptr |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
482 end |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
483 document xbuflocal |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
484 Print $ as a buffer-local-value pointer, assuming it is an Emacs Lisp Misc value. |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
485 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
486 |
567 | 487 define xsymbol |
55686 | 488 set $sym = $ |
489 xgetptr $sym | |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
490 print (struct Lisp_Symbol *) $ptr |
55686 | 491 xprintsym $sym |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
492 echo \n |
567 | 493 end |
638 | 494 document xsymbol |
495 Print the name and address of the symbol $. | |
7962 | 496 This command assumes that $ is an Emacs Lisp symbol value. |
638 | 497 end |
567 | 498 |
499 define xstring | |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
500 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
501 print (struct Lisp_String *) $ptr |
55681
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
502 xprintstr $ |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
503 echo \n |
567 | 504 end |
505 document xstring | |
638 | 506 Print the contents and address of the string $. |
7962 | 507 This command assumes that $ is an Emacs Lisp string value. |
567 | 508 end |
509 | |
510 define xvector | |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
511 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
512 print (struct Lisp_Vector *) $ptr |
55609
253acecd37f9
Mask off gdb_array_mark_flag from vector sizes.
Andreas Schwab <schwab@suse.de>
parents:
54690
diff
changeset
|
513 output ($->size > 50) ? 0 : ($->contents[0])@($->size & ~gdb_array_mark_flag) |
999 | 514 echo \n |
567 | 515 end |
516 document xvector | |
638 | 517 Print the contents and address of the vector $. |
7962 | 518 This command assumes that $ is an Emacs Lisp vector value. |
567 | 519 end |
520 | |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
521 define xprocess |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
522 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
523 print (struct Lisp_Process *) $ptr |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
524 output *$ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
525 echo \n |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
526 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
527 document xprocess |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
528 Print the address of the struct Lisp_process which the Lisp_Object $ points to. |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
529 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
530 |
1113 | 531 define xframe |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
532 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
533 print (struct frame *) $ptr |
567 | 534 end |
1113 | 535 document xframe |
7962 | 536 Print $ as a frame pointer, assuming it is an Emacs Lisp frame value. |
638 | 537 end |
567 | 538 |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
539 define xcompiled |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
540 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
541 print (struct Lisp_Vector *) $ptr |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
542 output ($->contents[0])@($->size & 0xff) |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
543 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
544 document xcompiled |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
545 Print $ as a compiled function pointer, assuming it is an Emacs Lisp compiled value. |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
546 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
547 |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
548 define xwindow |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
549 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
550 print (struct window *) $ptr |
68857
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
551 set $window = (struct window *) $ptr |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
552 xgetint $window->total_cols |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
553 set $width=$int |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
554 xgetint $window->total_lines |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
555 set $height=$int |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
556 xgetint $window->left_col |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
557 set $left=$int |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
558 xgetint $window->top_line |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
559 set $top=$int |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
560 printf "%dx%d+%d+%d\n", $width, $height, $left, $top |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
561 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
562 document xwindow |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
563 Print $ as a window pointer, assuming it is an Emacs Lisp window value. |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
564 Print the window's position as "WIDTHxHEIGHT+LEFT+TOP". |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
565 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
566 |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
567 define xwinconfig |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
568 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
569 print (struct save_window_data *) $ptr |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
570 end |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
571 document xwinconfig |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
572 Print $ as a window configuration pointer, assuming it is an Emacs Lisp window configuration value. |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
573 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
574 |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
575 define xsubr |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
576 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
577 print (struct Lisp_Subr *) $ptr |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
578 output *$ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
579 echo \n |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
580 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
581 document xsubr |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
582 Print the address of the subr which the Lisp_Object $ points to. |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
583 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
584 |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
585 define xchartable |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
586 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
587 print (struct Lisp_Char_Table *) $ptr |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
588 printf "Purpose: " |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
589 xprintsym $->purpose |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
590 printf " %d extra slots", ($->size & 0x1ff) - 388 |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
591 echo \n |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
592 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
593 document xchartable |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
594 Print the address of the char-table $, and its purpose. |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
595 This command assumes that $ is an Emacs Lisp char-table value. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
596 end |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
597 |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
598 define xboolvector |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
599 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
600 print (struct Lisp_Bool_Vector *) $ptr |
55609
253acecd37f9
Mask off gdb_array_mark_flag from vector sizes.
Andreas Schwab <schwab@suse.de>
parents:
54690
diff
changeset
|
601 output ($->size > 256) ? 0 : ($->data[0])@((($->size & ~gdb_array_mark_flag) + 7)/ 8) |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
602 echo \n |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
603 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
604 document xboolvector |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
605 Print the contents and address of the bool-vector $. |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
606 This command assumes that $ is an Emacs Lisp bool-vector value. |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
607 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
608 |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
609 define xbuffer |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
610 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
611 print (struct buffer *) $ptr |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
612 xgetptr $->name |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
613 output ((struct Lisp_String *) $ptr)->data |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
614 echo \n |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
615 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
616 document xbuffer |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
617 Set $ as a buffer pointer, assuming it is an Emacs Lisp buffer value. |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
618 Print the name of the buffer. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
619 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
620 |
30636 | 621 define xhashtable |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
622 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
623 print (struct Lisp_Hash_Table *) $ptr |
30636 | 624 end |
625 document xhashtable | |
626 Set $ as a hash table pointer, assuming it is an Emacs Lisp hash table value. | |
627 end | |
628 | |
567 | 629 define xcons |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
630 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
631 print (struct Lisp_Cons *) $ptr |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
632 output/x *$ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
633 echo \n |
567 | 634 end |
638 | 635 document xcons |
7962 | 636 Print the contents of $, assuming it is an Emacs Lisp cons. |
638 | 637 end |
567 | 638 |
18522
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
639 define nextcons |
67020
2385088bbb84
(nextcons, xcdr, xfloat): Update for changes in
Andreas Schwab <schwab@suse.de>
parents:
66903
diff
changeset
|
640 p $.u.cdr |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
641 xcons |
18522
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
642 end |
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
643 document nextcons |
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
644 Print the contents of the next cell in a list. |
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
645 This assumes that the last thing you printed was a cons cell contents |
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
646 (type struct Lisp_Cons) or a pointer to one. |
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
647 end |
567 | 648 define xcar |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
649 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
650 xgettype $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
651 print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->car : 0) |
567 | 652 end |
638 | 653 document xcar |
7962 | 654 Print the car of $, assuming it is an Emacs Lisp pair. |
638 | 655 end |
567 | 656 |
657 define xcdr | |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
658 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
659 xgettype $ |
67020
2385088bbb84
(nextcons, xcdr, xfloat): Update for changes in
Andreas Schwab <schwab@suse.de>
parents:
66903
diff
changeset
|
660 print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->u.cdr : 0) |
567 | 661 end |
638 | 662 document xcdr |
7962 | 663 Print the cdr of $, assuming it is an Emacs Lisp pair. |
638 | 664 end |
567 | 665 |
4267 | 666 define xfloat |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
667 xgetptr $ |
67020
2385088bbb84
(nextcons, xcdr, xfloat): Update for changes in
Andreas Schwab <schwab@suse.de>
parents:
66903
diff
changeset
|
668 print ((struct Lisp_Float *) $ptr)->u.data |
4267 | 669 end |
670 document xfloat | |
671 Print $ assuming it is a lisp floating-point number. | |
672 end | |
673 | |
1789
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
674 define xscrollbar |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
675 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
676 print (struct scrollbar *) $ptr |
1789
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
677 output *$ |
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
678 echo \n |
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
679 end |
4268
0795ced6013f
(xscrollbar): Fix typo specifying doc string.
Richard M. Stallman <rms@gnu.org>
parents:
4267
diff
changeset
|
680 document xscrollbar |
1789
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
681 Print $ as a scrollbar pointer. |
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
682 end |
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
683 |
55681
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
684 define xprintstr |
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
685 set $data = $arg0->data |
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
686 output ($arg0->size > 1000) ? 0 : ($data[0])@($arg0->size_byte < 0 ? $arg0->size & ~gdb_array_mark_flag : $arg0->size_byte) |
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
687 end |
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
688 |
27290 | 689 define xprintsym |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
690 xgetptr $arg0 |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
691 set $sym = (struct Lisp_Symbol *) $ptr |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
692 xgetptr $sym->xname |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
693 set $sym_name = (struct Lisp_String *) $ptr |
55681
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
694 xprintstr $sym_name |
27290 | 695 end |
696 document xprintsym | |
697 Print argument as a symbol. | |
698 end | |
699 | |
700 define xbacktrace | |
701 set $bt = backtrace_list | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45966
diff
changeset
|
702 while $bt |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
703 xgettype (*$bt->function) |
32812
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
704 if $type == Lisp_Symbol |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
705 xprintsym (*$bt->function) |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
706 echo \n |
32812
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
707 else |
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
708 printf "0x%x ", *$bt->function |
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
709 if $type == Lisp_Vectorlike |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
710 xgetptr (*$bt->function) |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
711 set $size = ((struct Lisp_Vector *) $ptr)->size |
55609
253acecd37f9
Mask off gdb_array_mark_flag from vector sizes.
Andreas Schwab <schwab@suse.de>
parents:
54690
diff
changeset
|
712 output ($size & PVEC_FLAG) ? (enum pvec_type) ($size & PVEC_TYPE_MASK) : $size & ~gdb_array_mark_flag |
32812
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
713 else |
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
714 printf "Lisp type %d", $type |
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
715 end |
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
716 echo \n |
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
717 end |
27290 | 718 set $bt = $bt->next |
719 end | |
720 end | |
721 document xbacktrace | |
722 Print a backtrace of Lisp function calls from backtrace_list. | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45966
diff
changeset
|
723 Set a breakpoint at Fsignal and call this to see from where |
32812
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
724 an error was signaled. |
27290 | 725 end |
726 | |
66817
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
727 # Show Lisp backtrace after normal backtrace. |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
728 define hookpost-backtrace |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
729 set $bt = backtrace_list |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
730 if $bt |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
731 echo \n |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
732 echo Lisp Backtrace:\n |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
733 xbacktrace |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
734 end |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
735 end |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
736 |
27290 | 737 define xreload |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
738 set $tagmask = (((long)1 << gdb_gctypebits) - 1) |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
739 set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)1 << gdb_valbits) - 1 |
27290 | 740 end |
741 document xreload | |
742 When starting Emacs a second time in the same gdb session under | |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
743 FreeBSD 2.2.5, gdb 4.13, $valmask have lost |
35792
9ec1e59890a2
(hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents:
34876
diff
changeset
|
744 their values. (The same happens on current (2000) versions of GNU/Linux |
9ec1e59890a2
(hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents:
34876
diff
changeset
|
745 with gdb 5.0.) |
31960
eb2d3d3a8eb5
(xreload): Note its need on GNU/Linux.
Dave Love <fx@gnu.org>
parents:
30636
diff
changeset
|
746 This function reloads them. |
27290 | 747 end |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
748 xreload |
27290 | 749 |
57306
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
750 # Flush display (X only) |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
751 define ff |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
752 set x_flush (0) |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
753 end |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
754 document ff |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
755 Flush pending X window display updates to screen. |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
756 Works only when an inferior emacs is executing. |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
757 end |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
758 |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
759 |
35792
9ec1e59890a2
(hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents:
34876
diff
changeset
|
760 define hook-run |
9ec1e59890a2
(hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents:
34876
diff
changeset
|
761 xreload |
9ec1e59890a2
(hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents:
34876
diff
changeset
|
762 end |
9ec1e59890a2
(hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents:
34876
diff
changeset
|
763 |
42907
1865230232b7
(hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
42682
diff
changeset
|
764 # Call xreload if a new Emacs executable is loaded. |
1865230232b7
(hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
42682
diff
changeset
|
765 define hookpost-run |
1865230232b7
(hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
42682
diff
changeset
|
766 xreload |
1865230232b7
(hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
42682
diff
changeset
|
767 end |
1865230232b7
(hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
42682
diff
changeset
|
768 |
638 | 769 set print pretty on |
4267 | 770 set print sevenbit-strings |
567 | 771 |
732 | 772 show environment DISPLAY |
4487 | 773 show environment TERM |
67027 | 774 set args -geometry 80x40+0+0 |
732 | 775 |
67925
477140fdc860
Tell users not to worry about GDB warnings that some functions do not
Eli Zaretskii <eliz@gnu.org>
parents:
67633
diff
changeset
|
776 # People get bothered when they see messages about non-existent functions... |
68007
0b578812ab24
Undo last change. Instead, look at Vsystem_type to
Kim F. Storm <storm@cua.dk>
parents:
67925
diff
changeset
|
777 xgetptr Vsystem_type |
68297
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
778 # $ptr is NULL in temacs |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
779 if ($ptr != 0) |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
780 set $tem = (struct Lisp_Symbol *) $ptr |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
781 xgetptr $tem->xname |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
782 set $tem = (struct Lisp_String *) $ptr |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
783 set $tem = (char *) $tem->data |
67925
477140fdc860
Tell users not to worry about GDB warnings that some functions do not
Eli Zaretskii <eliz@gnu.org>
parents:
67633
diff
changeset
|
784 |
68297
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
785 # Don't let abort actually run, as it will make stdio stop working and |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
786 # therefore the `pr' command above as well. |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
787 if $tem[0] == 'w' && $tem[1] == 'i' && $tem[2] == 'n' && $tem[3] == 'd' |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
788 # The windows-nt build replaces abort with its own function. |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
789 break w32_abort |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
790 else |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
791 break abort |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
792 end |
68047 | 793 end |
567 | 794 |
68047 | 795 # x_error_quitter is defined only on X. But window-system is set up |
796 # only at run time, during Emacs startup, so we need to defer setting | |
797 # the breakpoint. init_sys_modes is the first function called on | |
798 # every platform after init_display, where window-system is set. | |
799 tbreak init_sys_modes | |
800 commands | |
801 silent | |
68024
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
802 xgetptr Vwindow_system |
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
803 set $tem = (struct Lisp_Symbol *) $ptr |
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
804 xgetptr $tem->xname |
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
805 set $tem = (struct Lisp_String *) $ptr |
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
806 set $tem = (char *) $tem->data |
68047 | 807 # If we are running in synchronous mode, we want a chance to look |
808 # around before Emacs exits. Perhaps we should put the break | |
809 # somewhere else instead... | |
68024
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
810 if $tem[0] == 'x' && $tem[1] == '\0' |
68052 | 811 break x_error_quitter |
68024
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
812 end |
68047 | 813 continue |
68007
0b578812ab24
Undo last change. Instead, look at Vsystem_type to
Kim F. Storm <storm@cua.dk>
parents:
67925
diff
changeset
|
814 end |
52401 | 815 # arch-tag: 12f34321-7bfa-4240-b77a-3cd3a1696dfe |