annotate src/gdbinit.pre-4.14 @ 235:85a06df23a9a r20-5b16

Import from CVS: tag r20-5b16
author cvs
date Mon, 13 Aug 2007 10:14:40 +0200
parents 376386a54a3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 # Some useful commands for debugging XEmacs with gdb 4.* or better.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 # If you have gdb 4.14 or better, you should use the version provided
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 # for that debugger -- it's much easier to use. See that file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 # (called "gdbinit" in the src/ directory of the XEmacs 19.14+ distribution)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 # for more info.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 # Used on machines with NO_UNION_TYPE defined (everyone except DEC Alpha).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 set print union off
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 set print pretty off
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 define temacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 run -batch -l loadup.el run-temacs -q
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 echo \n>>> Use the `temacs' command to run temacs\n\n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 # if you use Purify, do this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 # set env PURIFYOPTIONS -pointer-mask=0x0fffffff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 # was frob, but p1 is short for prin1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 define p1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 call debug_print ($)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 define lbt
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 call Fbacktrace (Qexternal_debugging_output, Qt)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 set $vector_length_mask = ~(1<<31)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 define xtype
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 # this is really xgctype, as we mask off the mark bit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 output (enum Lisp_Type) (($ >> 28) & 7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 echo \n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 define xint
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 print ((int)($1 << 4))>>4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 define xmarkbit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 print ($1 >> 31)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 define xrecord
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 print (struct lrecord_header *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 output *($->implementation)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 echo \n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 define xbitvec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 print (struct Lisp_Bit_Vector *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 define xbuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 print (struct buffer *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 define xbytecode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 print (struct Lisp_Bytecode *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 define xcharset
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 print (struct Lisp_Charset *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 define xchartab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 print (struct Lisp_Char_Table *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 define xchartabentry
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 print (struct Lisp_Char_Table_Entry *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 define xcodesys
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 print (struct Lisp_Coding_System *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 define xcolorinst
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 print (struct Lisp_Color_Instance *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 define xcons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 print (struct Lisp_Cons *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 define xcursor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 print (struct Lisp_Cursor *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 define xdevice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 print (struct device *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 define xevent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 print (struct Lisp_Event *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 define xextent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 print (struct extent *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 define xextentaux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 print (struct extent_auxiliary *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 define xextentinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 print (struct extent_info *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 define xfloat
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 print (struct Lisp_Float *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 output (double) $->data.d
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 echo \n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 define xfontinst
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 print (struct Lisp_Font_Instance *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 define xframe
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 print (struct frame *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 define xglyph
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 print (struct Lisp_Glyph *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 define xhashtable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 print (struct hashtable_struct *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 define ximageinst
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 print (struct Lisp_Image_Instance *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 define xkeymap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 print (struct keymap *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 define xlstream
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 print (struct lstream *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 define xmarker
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 print (struct Lisp_Marker *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 define xmenubardata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 print (struct menubar_data *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 define xopaque
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 print (struct Lisp_Opaque *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 define xprocess
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 print (struct Lisp_Process *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 define xrangetab
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 print (struct Lisp_Range_Table *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 define xspec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 print (struct Lisp_Specifier *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 define xstring
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 print (struct Lisp_String *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 output (char *) $->_data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 echo \n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 define xsubr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 print (struct Lisp_Subr *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 define xsubwindow
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 print (struct Lisp_Subwindow *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 define xtoolbarbutton
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 print (struct toolbar_button *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 define xtoolbardata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 print (struct toolbar_data *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 define xtooltalkmess
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 print (struct Lisp_Tooltalk_Message *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 define xtooltalkpatt
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 print (struct Lisp_Tooltalk_Pattern *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 define xvector
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 print (struct Lisp_Vector *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 define xwindow
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 print (struct window *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 define xwindowconfig
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 print (struct window_config *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 define nilp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 print $ == Qnil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 define car
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 set $tem = ((struct Lisp_Cons *) ($ & 0xFFFFFFF))->car
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 define cdr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 set $tem = ((struct Lisp_Cons *) ($ & 0xFFFFFFF))->cdr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 define string-length
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 print ((struct Lisp_String *) ($ & 0xFFFFFFF))->_size & $vector_length_mask
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 define string-contents
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 print (char *) ((struct Lisp_String *) ($ & 0xFFFFFFF))->_data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 define vector-length
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 print ((struct Lisp_Vector *) ($ & 0xFFFFFFF))->size & $vector_length_mask
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 define vector-contents
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 set $tem = (struct Lisp_Vector *) ($ & 0xFFFFFFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 print *($tem->contents) @ ($tem->size & $vector_length_mask)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 set $ = $tem->contents
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 define symbol-name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 set $tem = ((struct Lisp_Symbol *) ($ & 0xFFFFFFF))->name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 # output *($tem->_data) @ ($tem->_size & $vector_length_mask)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 output ($tem->_data)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 echo \n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 set $type = Lisp_String
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 echo \n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 define xsymbol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 symbol-name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 define symbol-value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 set $tem = ((struct Lisp_Symbol *) ($ & 0xFFFFFFF))->value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 define symbol-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 set $tem = ((struct Lisp_Symbol *) ($ & 0xFFFFFFF))->function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 define symbol-plist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 set $tem = ((struct Lisp_Symbol *) ($ & 0xFFFFFFF))->plist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 define wtype
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 p $->core.widget_class->core_class.class_name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 define xtname
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 print XrmQuarkToString(((Object)($))->object.xrm_name)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 # GDB, with the losing command-line parser that it has,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 # cannot handle nested blocks.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 define breaks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 br Fsignal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 # command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 # bt 3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 # p sig
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 # xsymbol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 # end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 br Fkill_emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 # command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 # bt 3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 # end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 br assertion_failed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 # command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 # bt 3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 # end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 end