annotate src/gdbinit @ 418:e804706bfb8c r21-2-17

Import from CVS: tag r21-2-17
author cvs
date Mon, 13 Aug 2007 11:23:13 +0200
parents 697ef44129c6
children 95016f13131a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
1 # -*- ksh -*-
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
2 # Copyright (C) 1998 Free Software Foundation, Inc.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
3
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
4 # This file is part of XEmacs.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
5
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
6 # XEmacs is free software; you can redistribute it and/or modify it
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
7 # under the terms of the GNU General Public License as published by the
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
8 # Free Software Foundation; either version 2, or (at your option) any
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
9 # later version.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
10
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
11 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
14 # for more details.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
15
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
16 # You should have received a copy of the GNU General Public License
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
17 # along with XEmacs; see the file COPYING. If not, write to
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
18 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
19 # Boston, MA 02111-1307, USA.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
20
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
21 # Author: Martin Buchholz
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
22
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
23 # Some useful commands for debugging emacs with gdb 4.16 or better.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
24 # Install this as your .gdbinit file in your home directory,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
25 # or source this file from your .gdbinit
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
26 # Configure xemacs with --debug, and compile with -g.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
27 #
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
28 # See also the question of the XEmacs FAQ, titled
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
29 # "How to Debug an XEmacs problem with a debugger".
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
30 #
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
31 # This can be used to debug XEmacs no matter how the following are
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
32 # specified:
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
33
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
34 # USE_UNION_TYPE
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
35
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
36 # (the above all have configure equivalents)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
37
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
38 # Some functions defined here require a running process, but most
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
39 # don't. Considerable effort has been expended to this end.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
40
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
41 # See the dbg_ C support code in src/alloc.c that allows the functions
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
42 # defined in this file to work correctly.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
43
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
44 set print union off
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
45 set print pretty off
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
46
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
47 define decode_object
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
48 set $obj = (unsigned long) $arg0
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
49 if $obj & 1
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
50 # It's an int
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
51 set $val = $obj >> 1
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
52 set $type = Lisp_Type_Int
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
53 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
54 set $type = $obj & dbg_typemask
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
55 if $type == Lisp_Type_Char
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
56 set $val = ($obj & dbg_valmask) >> dbg_gctypebits
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
57 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
58 # It's a record pointer
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
59 set $val = $obj
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
60 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
61 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
62
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
63 if $type == Lisp_Type_Record
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
64 set $lheader = (struct lrecord_header *) $val
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
65 set $imp = lrecord_implementations_table[$lheader->type]
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
66 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
67 set $imp = -1
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
68 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
69 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
70
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
71 document decode_object
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
72 Usage: decode_object lisp_object
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
73 Extract implementation information from a Lisp Object.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
74 Defines variables $val, $type and $imp.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
75 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
76
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
77 define xint
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
78 decode_object $arg0
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
79 print ((long) $val)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
80 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
81
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
82 define xtype
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
83 decode_object $arg0
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
84 if $type == Lisp_Type_Int
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
85 echo int\n
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
86 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
87 if $type == Lisp_Type_Char
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
88 echo char\n
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
89 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
90 if $type == Lisp_Type_Symbol
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
91 echo symbol\n
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
92 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
93 if $type == Lisp_Type_String
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
94 echo string\n
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
95 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
96 if $type == Lisp_Type_Vector
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
97 echo vector\n
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
98 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
99 if $type == Lisp_Type_Cons
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
100 echo cons\n
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
101 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
102 printf "record type: %s\n", $imp->name
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
103 # barf
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
104 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
105 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
106 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
107 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
108 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
109 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
110 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
111
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
112 define lisp-shadows
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
113 run -batch -vanilla -f list-load-path-shadows
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
114 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
115
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
116 document lisp-shadows
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
117 Usage: lisp-shadows
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
118 Run xemacs to check for lisp shadows
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
119 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
120
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
121 define environment-to-run-temacs
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
122 unset env EMACSLOADPATH
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
123 set env EMACSBOOTSTRAPLOADPATH=../lisp/:..
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
124 set env EMACSBOOTSTRAPMODULEPATH=../modules/:..
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
125 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
126
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
127 define run-temacs
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
128 environment-to-run-temacs
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
129 run -batch -l ../lisp/loadup.el run-temacs -q
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
130 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
131
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
132 document run-temacs
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
133 Usage: run-temacs
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
134 Run temacs interactively, like xemacs.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
135 Use this with debugging tools (like purify) that cannot deal with dumping,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
136 or when temacs builds successfully, but xemacs does not.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
137 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
138
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
139 define update-elc
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
140 environment-to-run-temacs
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
141 run -batch -l ../lisp/update-elc.el
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
142 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
143
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
144 document update-elc
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
145 Usage: update-elc
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
146 Run the core lisp byte compilation part of the build procedure.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
147 Use when debugging temacs, not xemacs!
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
148 Use this when temacs builds successfully, but xemacs does not.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
149 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
150
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
151 define dump-temacs
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
152 environment-to-run-temacs
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
153 run -batch -l ../lisp/loadup.el dump
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
154 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
155
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
156 document dump-temacs
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
157 Usage: dump-temacs
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
158 Run the dumping part of the build procedure.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
159 Use when debugging temacs, not xemacs!
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
160 Use this when temacs builds successfully, but xemacs does not.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
161 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
162
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
163 # if you use Purify, do this:
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
164 # export PURIFYOPTIONS='-pointer-mask=0x0fffffff'
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
165
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
166 define ldp
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
167 printf "%s", "Lisp => "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
168 call debug_print($arg0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
169 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
170
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
171 document ldp
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
172 Usage: ldp lisp_object
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
173 Print a Lisp Object value using the Lisp printer.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
174 Requires a running xemacs process.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
175 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
176
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
177 define lbt
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
178 call debug_backtrace()
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
179 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
180
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
181 document lbt
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
182 Usage: lbt
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
183 Print the current Lisp stack trace.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
184 Requires a running xemacs process.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
185 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
186
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
187
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
188 define leval
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
189 ldp Feval(Fcar(Fread_from_string(build_string($arg0),Qnil,Qnil)))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
190 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
191
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
192 document leval
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
193 Usage: leval "SEXP"
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
194 Eval a lisp expression.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
195 Requires a running xemacs process.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
196
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
197 Example:
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
198 (gdb) leval "(+ 1 2)"
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
199 Lisp ==> 3
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
200 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
201
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
202
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
203 define wtype
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
204 print $arg0->core.widget_class->core_class.class_name
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
205 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
206
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
207 define xtname
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
208 print XrmQuarkToString(((Object)($arg0))->object.xrm_name)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
209 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
210
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
211 # GDB's command language makes you want to ...
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
212
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
213 define pstruct
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
214 set $xstruct = (struct $arg0 *) $val
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
215 print $xstruct
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
216 print *$xstruct
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
217 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
218
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
219 define pobj
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
220 decode_object $arg0
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
221 if $type == Lisp_Type_Int
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
222 printf "Integer: %d\n", $val
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
223 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
224 if $type == Lisp_Type_Char
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
225 if $val > 32 && $val < 128
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
226 printf "Char: %c\n", $val
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
227 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
228 printf "Char: %d\n", $val
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
229 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
230 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
231 if $type == Lisp_Type_String || $imp == lrecord_string
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
232 pstruct Lisp_String
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
233 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
234 if $type == Lisp_Type_Cons || $imp == lrecord_cons
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
235 pstruct Lisp_Cons
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
236 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
237 if $type == Lisp_Type_Symbol || $imp == lrecord_symbol
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
238 pstruct Lisp_Symbol
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
239 printf "Symbol name: %s\n", $xstruct->name->data
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
240 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
241 if $type == Lisp_Type_Vector || $imp == lrecord_vector
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
242 pstruct Lisp_Vector
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
243 printf "Vector of length %d\n", $xstruct->size
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
244 #print *($xstruct->data) @ $xstruct->size
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
245 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
246 if $imp == lrecord_bit_vector
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
247 pstruct Lisp_Bit_Vector
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
248 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
249 if $imp == lrecord_buffer
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
250 pstruct buffer
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
251 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
252 if $imp == lrecord_char_table
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
253 pstruct Lisp_Char_Table
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
254 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
255 if $imp == lrecord_char_table_entry
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
256 pstruct Lisp_Char_Table_Entry
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
257 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
258 if $imp == lrecord_charset
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
259 pstruct Lisp_Charset
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
260 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
261 if $imp == lrecord_coding_system
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
262 pstruct Lisp_Coding_System
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
263 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
264 if $imp == lrecord_color_instance
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
265 pstruct Lisp_Color_Instance
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
266 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
267 if $imp == lrecord_command_builder
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
268 pstruct command_builder
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
269 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
270 if $imp == lrecord_compiled_function
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
271 pstruct Lisp_Compiled_Function
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
272 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
273 if $imp == lrecord_console
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
274 pstruct console
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
275 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
276 if $imp == lrecord_database
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
277 pstruct Lisp_Database
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
278 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
279 if $imp == lrecord_device
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
280 pstruct device
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
281 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
282 if $imp == lrecord_event
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
283 pstruct Lisp_Event
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
284 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
285 if $imp == lrecord_extent
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
286 pstruct extent
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
287 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
288 if $imp == lrecord_extent_auxiliary
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
289 pstruct extent_auxiliary
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
290 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
291 if $imp == lrecord_extent_info
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
292 pstruct extent_info
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
293 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
294 if $imp == lrecord_face
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
295 pstruct Lisp_Face
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
296 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
297 if $imp == lrecord_float
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
298 pstruct Lisp_Float
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
299 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
300 if $imp == lrecord_font_instance
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
301 pstruct Lisp_Font_Instance
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
302 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
303 if $imp == lrecord_frame
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
304 pstruct frame
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
305 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
306 if $imp == lrecord_glyph
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
307 pstruct Lisp_Glyph
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
308 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
309 if $imp == lrecord_hash_table
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
310 pstruct Lisp_Hash_Table
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
311 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
312 if $imp == lrecord_image_instance
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
313 pstruct Lisp_Image_Instance
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
314 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
315 if $imp == lrecord_keymap
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
316 pstruct Lisp_Keymap
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
317 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
318 if $imp == lrecord_lcrecord_list
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
319 pstruct lcrecord_list
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
320 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
321 if $imp == lrecord_lstream
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
322 pstruct lstream
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
323 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
324 if $imp == lrecord_marker
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
325 pstruct Lisp_Marker
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
326 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
327 if $imp == lrecord_opaque
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
328 pstruct Lisp_Opaque
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
329 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
330 if $imp == lrecord_opaque_list
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
331 pstruct Lisp_Opaque_List
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
332 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
333 if $imp == lrecord_popup_data
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
334 pstruct popup_data
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
335 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
336 if $imp == lrecord_process
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
337 pstruct Lisp_Process
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
338 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
339 if $imp == lrecord_range_table
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
340 pstruct Lisp_Range_Table
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
341 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
342 if $imp == lrecord_specifier
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
343 pstruct Lisp_Specifier
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
344 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
345 if $imp == lrecord_subr
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
346 pstruct Lisp_Subr
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
347 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
348 if $imp == lrecord_symbol_value_buffer_local
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
349 pstruct symbol_value_buffer_local
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
350 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
351 if $imp == lrecord_symbol_value_forward
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
352 pstruct symbol_value_forward
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
353 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
354 if $imp == lrecord_symbol_value_lisp_magic
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
355 pstruct symbol_value_lisp_magic
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
356 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
357 if $imp == lrecord_symbol_value_varalias
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
358 pstruct symbol_value_varalias
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
359 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
360 if $imp == lrecord_toolbar_button
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
361 pstruct toolbar_button
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
362 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
363 if $imp == lrecord_tooltalk_message
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
364 pstruct Lisp_Tooltalk_Message
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
365 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
366 if $imp == lrecord_tooltalk_pattern
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
367 pstruct Lisp_Tooltalk_Pattern
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
368 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
369 if $imp == lrecord_weak_list
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
370 pstruct weak_list
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
371 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
372 if $imp == lrecord_window
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
373 pstruct window
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
374 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
375 if $imp == lrecord_window_configuration
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
376 pstruct window_config
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
377 else
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
378 echo Unknown Lisp Object type\n
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
379 print $arg0
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
380 # Barf, gag, retch
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
381 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
382 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
383 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
384 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
385 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
386 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
387 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
388 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
389 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
390 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
391 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
392 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
393 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
394 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
395 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
396 # Repeat after me... gdb sux, gdb sux, gdb sux...
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
397 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
398 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
399 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
400 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
401 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
402 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
403 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
404 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
405 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
406 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
407 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
408 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
409 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
410 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
411 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
412 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
413 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
414 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
415 # Are we having fun yet??
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
416 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
417 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
418 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
419 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
420 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
421 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
422 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
423 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
424 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
425 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
426 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
427 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
428 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
429 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
430 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
431 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
432 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
433 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
434
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
435 document pobj
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
436 Usage: pobj lisp_object
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
437 Print the internal C structure of a underlying Lisp Object.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
438 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
439
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
440 # -------------------------------------------------------------
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
441 # functions to test the debugging support itself.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
442 # If you change this file, make sure the following still work...
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
443 # -------------------------------------------------------------
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
444 define test_xtype
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
445 printf "Vemacs_major_version: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
446 xtype Vemacs_major_version
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
447 printf "Vhelp_char: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
448 xtype Vhelp_char
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
449 printf "Qnil: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
450 xtype Qnil
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
451 printf "Qunbound: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
452 xtype Qunbound
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
453 printf "Vobarray: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
454 xtype Vobarray
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
455 printf "Vall_weak_lists: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
456 xtype Vall_weak_lists
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
457 printf "Vxemacs_codename: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
458 xtype Vxemacs_codename
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
459 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
460
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
461 define test_pobj
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
462 printf "Vemacs_major_version: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
463 pobj Vemacs_major_version
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
464 printf "Vhelp_char: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
465 pobj Vhelp_char
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
466 printf "Qnil: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
467 pobj Qnil
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
468 printf "Qunbound: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
469 pobj Qunbound
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
470 printf "Vobarray: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
471 pobj Vobarray
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
472 printf "Vall_weak_lists: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
473 pobj Vall_weak_lists
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
474 printf "Vxemacs_codename: "
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
475 pobj Vxemacs_codename
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
476 end
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents:
diff changeset
477