annotate src/gdbinit.union @ 185:3d6bfa290dbd r20-3b19

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