Mercurial > hg > xemacs-beta
annotate src/.gdbinit.in.in @ 5630:f5315ccbf005
Cons less, be more careful about always using the environment, #'macroexpand
2011-12-30 Aidan Kehoe <kehoea@parhasard.net>
* eval.c (Fmacroexpand):
Don't cons if ENVIRONMENT is the same object as
byte-compile-macro-environment.
Always look up symbol- and other macros in the (possibly modified)
byte-compile-macro-environment, not the supplied ENVIRONMENT.
byte-compile-macro-environment reflects ENVIRONMENT, so that's OK
and preferred.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Fri, 30 Dec 2011 12:43:52 +0000 |
parents | bccc91a65536 |
children | f4d74be74462 |
rev | line source |
---|---|
3418 | 1 ## gdb init file for XEmacs -*- ksh -*- |
2 ## This is the source for src/.gdbinit. Edit it, and rerun configure. | |
3 ## (Running config.status is not enough.) | |
4 ## The generated file depends on src/config.h (currently only in one place). | |
5 | |
6 ## To insert comments that will remain in the generated file, we use the | |
7 ## imake XCOMM convention. Lines beginning with "XCOMM " exactly (no | |
8 ## leading whitespace, one trailing ASCII space, case sensitive) will be | |
9 ## transformed to gdb command file comments in the generated file. | |
10 | |
11 XCOMM gdb init file for XEmacs | |
12 XCOMM AUTOMATICALLY GENERATED FROM etc/gdbinit.in BY configure -- DO NOT EDIT. | |
13 XCOMM See etc/gdbinit.in for licensing information and usage hints. | |
14 XCOMM Copyright (C) 1998 Free Software Foundation, Inc. | |
4939
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4935
diff
changeset
|
15 XCOMM Copyright (C) 2010 Ben Wing. |
3418 | 16 |
17 ## This file is part of XEmacs. | |
18 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5069
diff
changeset
|
19 ## XEmacs is free software: you can redistribute it and/or modify it |
3418 | 20 ## under the terms of the GNU General Public License as published by the |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5069
diff
changeset
|
21 ## Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5069
diff
changeset
|
22 ## option) any later version. |
3418 | 23 |
24 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
25 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
26 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
27 ## for more details. | |
28 | |
29 ## You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5069
diff
changeset
|
30 ## along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
3418 | 31 |
32 ## Author: Martin Buchholz | |
33 | |
34 ## Other contributors you could ask for help: Ivan Golubev, Jerry James, | |
35 ## Stephen Turnbull. | |
36 | |
37 ## Some useful commands for debugging emacs with gdb 4.16 or better. | |
38 ## | |
39 ## Since this file is called `.gdbinit', it will be read by gdb | |
40 ## automatically when gdb is run in the build directory, which is where | |
41 ## developers usually debug their xemacs. You can also source this | |
42 ## file from your ~/.gdbinit, if you like. | |
43 ## | |
44 ## Configure xemacs with --debug, and compile with -g. | |
45 ## | |
46 ## See also the question of the XEmacs FAQ, titled | |
47 ## "How to Debug an XEmacs problem with a debugger". | |
48 ## | |
49 ## This can be used to debug XEmacs no matter how the following are | |
50 ## specified: | |
51 | |
52 ## USE_UNION_TYPE | |
53 | |
54 ## (the above all have configure equivalents) | |
55 | |
56 ## Some functions defined here require a running process, but most | |
57 ## don't. Considerable effort has been expended to this end. | |
58 | |
59 ## See the dbg_ C support code in src/alloc.c that allows the functions | |
60 ## defined in this file to work correctly. | |
61 | |
62 #define NOT_C_CODE | |
63 #include "config.h" | |
64 | |
65 set print union off | |
66 set print pretty off | |
67 | |
68 #ifdef VDB_POSIX | |
69 handle SIGSEGV SIGBUS nostop noprint | |
70 #endif | |
71 | |
72 set $Lisp_Type_Int = -2 | |
4643
e9ccbc62f7e7
Don't rely on GDB understanding the Lisp_Type_{Record,Char} enums, gdbinit.in
Aidan Kehoe <kehoea@parhasard.net>
parents:
3934
diff
changeset
|
73 set $Lisp_Type_Record = 0 |
e9ccbc62f7e7
Don't rely on GDB understanding the Lisp_Type_{Record,Char} enums, gdbinit.in
Aidan Kehoe <kehoea@parhasard.net>
parents:
3934
diff
changeset
|
74 set $Lisp_Type_Char = 2 |
3418 | 75 |
76 define decode_object | |
77 set $obj = (unsigned long) $arg0 | |
78 if $obj & 1 | |
79 ## It's an int | |
80 set $val = $obj >> 1 | |
81 set $type = $Lisp_Type_Int | |
82 else | |
83 set $type = $obj & dbg_typemask | |
4643
e9ccbc62f7e7
Don't rely on GDB understanding the Lisp_Type_{Record,Char} enums, gdbinit.in
Aidan Kehoe <kehoea@parhasard.net>
parents:
3934
diff
changeset
|
84 if $type == $Lisp_Type_Char |
3418 | 85 set $val = ($obj & dbg_valmask) >> dbg_gctypebits |
86 else | |
87 ## It's a record pointer | |
88 set $val = $obj | |
89 end | |
90 end | |
91 | |
4643
e9ccbc62f7e7
Don't rely on GDB understanding the Lisp_Type_{Record,Char} enums, gdbinit.in
Aidan Kehoe <kehoea@parhasard.net>
parents:
3934
diff
changeset
|
92 if $type == $Lisp_Type_Record |
3418 | 93 set $lheader = ((struct lrecord_header *) $val) |
94 set $lrecord_type = ($lheader->type) | |
95 set $imp = ((struct lrecord_implementation *) lrecord_implementations_table[(int) $lrecord_type]) | |
96 else | |
97 set $lrecord_type = -1 | |
98 set $lheader = -1 | |
99 set $imp = -1 | |
100 end | |
101 end | |
102 | |
103 document decode_object | |
104 Usage: decode_object lisp_object | |
105 Extract implementation information from a Lisp Object. | |
106 Defines variables $val, $type and $imp. | |
107 end | |
108 | |
109 define xint | |
110 decode_object $arg0 | |
111 print ((long) $val) | |
112 end | |
113 | |
114 define xtype | |
115 decode_object $arg0 | |
116 if $type == $Lisp_Type_Int | |
117 echo int\n | |
118 else | |
4643
e9ccbc62f7e7
Don't rely on GDB understanding the Lisp_Type_{Record,Char} enums, gdbinit.in
Aidan Kehoe <kehoea@parhasard.net>
parents:
3934
diff
changeset
|
119 if $type == $Lisp_Type_Char |
3418 | 120 echo char\n |
121 else | |
122 printf "record type: %s\n", $imp->name | |
123 end | |
124 end | |
125 end | |
126 | |
127 document xtype | |
128 Usage: xtype lisp_object | |
129 Print the Lisp type of a lisp object. | |
130 end | |
131 | |
132 define lisp-shadows | |
133 run -batch -vanilla -f list-load-path-shadows | |
134 end | |
135 | |
136 document lisp-shadows | |
137 Usage: lisp-shadows | |
138 Run xemacs to check for lisp shadows | |
139 end | |
140 | |
141 define environment-to-run-temacs | |
142 unset env EMACSLOADPATH | |
4939
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4935
diff
changeset
|
143 set env EMACSBOOTSTRAPLOADPATH=@srcdir@/../lisp/:@srcdir@/.. |
3418 | 144 set env EMACSBOOTSTRAPMODULEPATH=../modules/:.. |
145 end | |
146 | |
147 define run-temacs | |
148 environment-to-run-temacs | |
4939
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4935
diff
changeset
|
149 run -nd -no-packages -batch -l @srcdir@/../lisp/loadup.el run-temacs -q |
3418 | 150 end |
151 | |
152 document run-temacs | |
153 Usage: run-temacs | |
154 Run temacs interactively, like xemacs. | |
155 Use this with debugging tools (like purify) that cannot deal with dumping, | |
156 or when temacs builds successfully, but xemacs does not. | |
157 end | |
158 | |
4951 | 159 define check-xemacs-arg |
5069
14f0dd1fabdb
move test-harness to lisp/ directory so it gets byte-compiled
Ben Wing <ben@xemacs.org>
parents:
4953
diff
changeset
|
160 run -vanilla -batch -l test-harness -f batch-test-emacs @srcdir@/../tests/$arg0 |
4951 | 161 end |
162 | |
3418 | 163 define check-xemacs |
4951 | 164 if $argc == 0 |
165 check-xemacs-arg automated | |
166 else | |
167 check-xemacs-arg automated/$arg0 | |
168 end | |
3418 | 169 end |
170 | |
171 document check-xemacs | |
4951 | 172 Usage: check-xemacs [FILE] |
173 Run the test suite. If no file given, run the whole suite, equivalent to | |
174 'make check'. If a file given, run the suite only on the specified file. | |
3418 | 175 end |
176 | |
4951 | 177 define check-temacs-arg |
3418 | 178 environment-to-run-temacs |
5069
14f0dd1fabdb
move test-harness to lisp/ directory so it gets byte-compiled
Ben Wing <ben@xemacs.org>
parents:
4953
diff
changeset
|
179 run -nd -no-packages -batch -l @srcdir@/../lisp/loadup.el run-temacs -q -batch -l test-harness -f batch-test-emacs @srcdir@/../tests/$arg0 |
4951 | 180 |
181 define check-temacs | |
182 if $argc == 0 | |
183 check-temacs-arg automated | |
184 else | |
185 check-temacs-arg automated/$arg0 | |
186 end | |
3418 | 187 end |
188 | |
189 document check-temacs | |
4951 | 190 Usage: check-temacs [FILE] |
191 Run the test suite on temacs. If no file given, run the whole suite, | |
192 equivalent to 'make check-temacs'. If a file given, run the suite only on | |
193 the specified file. | |
194 | |
3418 | 195 Use this with debugging tools (like purify) that cannot deal with dumping, |
196 or when temacs builds successfully, but xemacs does not. | |
197 end | |
198 | |
199 define update-elc | |
200 environment-to-run-temacs | |
4939
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4935
diff
changeset
|
201 run -nd -no-packages -batch -l @srcdir@/../lisp/update-elc.el |
3418 | 202 end |
203 | |
204 document update-elc | |
205 Usage: update-elc | |
206 Run the core lisp byte compilation part of the build procedure. | |
207 Use when debugging temacs, not xemacs! | |
208 Use this when temacs builds successfully, but xemacs does not. | |
209 end | |
210 | |
4935
7ef913bf3c9a
modify gdbinit to track Makefile.in.in, add command for update-elc-2
Ben Wing <ben@xemacs.org>
parents:
4643
diff
changeset
|
211 define update-elc-2 |
7ef913bf3c9a
modify gdbinit to track Makefile.in.in, add command for update-elc-2
Ben Wing <ben@xemacs.org>
parents:
4643
diff
changeset
|
212 environment-to-run-temacs |
4939
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4935
diff
changeset
|
213 run -no-packages -batch -no-autoloads -l update-elc-2.el -f batch-update-elc-2 @srcdir@/../lisp |
4935
7ef913bf3c9a
modify gdbinit to track Makefile.in.in, add command for update-elc-2
Ben Wing <ben@xemacs.org>
parents:
4643
diff
changeset
|
214 end |
7ef913bf3c9a
modify gdbinit to track Makefile.in.in, add command for update-elc-2
Ben Wing <ben@xemacs.org>
parents:
4643
diff
changeset
|
215 |
7ef913bf3c9a
modify gdbinit to track Makefile.in.in, add command for update-elc-2
Ben Wing <ben@xemacs.org>
parents:
4643
diff
changeset
|
216 document update-elc-2 |
7ef913bf3c9a
modify gdbinit to track Makefile.in.in, add command for update-elc-2
Ben Wing <ben@xemacs.org>
parents:
4643
diff
changeset
|
217 Usage: update-elc-2 |
7ef913bf3c9a
modify gdbinit to track Makefile.in.in, add command for update-elc-2
Ben Wing <ben@xemacs.org>
parents:
4643
diff
changeset
|
218 Run the post-dump core lisp byte compilation part of the build procedure. |
7ef913bf3c9a
modify gdbinit to track Makefile.in.in, add command for update-elc-2
Ben Wing <ben@xemacs.org>
parents:
4643
diff
changeset
|
219 end |
7ef913bf3c9a
modify gdbinit to track Makefile.in.in, add command for update-elc-2
Ben Wing <ben@xemacs.org>
parents:
4643
diff
changeset
|
220 |
3418 | 221 define dmp |
222 environment-to-run-temacs | |
4939
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4935
diff
changeset
|
223 run -nd -no-packages -batch -l @srcdir@/../lisp/loadup.el dump |
3418 | 224 end |
225 | |
226 document dmp | |
227 Usage: dmp | |
228 Run the dumping part of the build procedure. | |
229 Use when debugging temacs, not xemacs! | |
230 Use this when temacs builds successfully, but xemacs does not. | |
231 end | |
232 | |
233 define ldp | |
234 printf "%s", "Lisp => " | |
235 call debug_print($arg0) | |
236 end | |
237 | |
238 document ldp | |
239 Usage: ldp lisp_object | |
240 Print a Lisp Object value using the Lisp printer. | |
241 Requires a running xemacs process. | |
242 end | |
243 | |
244 define lbt | |
245 call debug_backtrace() | |
246 end | |
247 | |
248 document lbt | |
249 Usage: lbt | |
250 Print the current Lisp stack trace. | |
251 Requires a running xemacs process. | |
252 end | |
253 | |
254 | |
255 define leval | |
4953
304aebb79cd3
function renamings to track names of char typedefs
Ben Wing <ben@xemacs.org>
parents:
4951
diff
changeset
|
256 ldp Feval(Fcar(Fread_from_string(build_cistring($arg0),Qnil,Qnil))) |
3418 | 257 end |
258 | |
259 document leval | |
260 Usage: leval "SEXP" | |
261 Eval a lisp expression. | |
262 Requires a running xemacs process. | |
263 | |
264 Example: | |
265 (gdb) leval "(+ 1 2)" | |
266 Lisp ==> 3 | |
267 end | |
268 | |
269 | |
270 define wtype | |
271 print $arg0->core.widget_class->core_class.class_name | |
272 end | |
273 | |
274 define xtname | |
275 print XrmQuarkToString(((Object)($arg0))->object.xrm_name) | |
276 end | |
277 | |
278 ## GDB's command language makes you want to ... | |
279 | |
280 define pptype | |
281 set $type_ptr = ($arg0 *) $val | |
282 print $type_ptr | |
283 print *$type_ptr | |
284 end | |
285 | |
286 define pstructtype | |
287 set $type_ptr = (struct $arg0 *) $val | |
288 print $type_ptr | |
289 print *$type_ptr | |
290 end | |
291 | |
292 define pobj | |
293 decode_object $arg0 | |
294 if $type == $Lisp_Type_Int | |
295 printf "Integer: %d\n", $val | |
296 else | |
4643
e9ccbc62f7e7
Don't rely on GDB understanding the Lisp_Type_{Record,Char} enums, gdbinit.in
Aidan Kehoe <kehoea@parhasard.net>
parents:
3934
diff
changeset
|
297 if $type == $Lisp_Type_Char |
3418 | 298 if $val > 32 && $val < 128 |
299 printf "Char: %c\n", $val | |
300 else | |
301 printf "Char: %d\n", $val | |
302 end | |
303 else | |
304 if $lrecord_type == lrecord_type_string | |
305 pptype Lisp_String | |
306 else | |
307 if $lrecord_type == lrecord_type_cons | |
308 pptype Lisp_Cons | |
309 else | |
310 if $lrecord_type == lrecord_type_symbol | |
311 pptype Lisp_Symbol | |
312 printf "Symbol name: %s\n", ((Lisp_String *)$type_ptr->name)->data_ | |
313 else | |
314 if $lrecord_type == lrecord_type_vector | |
315 pptype Lisp_Vector | |
316 printf "Vector of length %d\n", $type_ptr->size | |
317 ##print *($type_ptr->data) @ $type_ptr->size | |
318 else | |
319 if $lrecord_type == lrecord_type_bit_vector | |
320 pptype Lisp_Bit_Vector | |
321 else | |
322 if $lrecord_type == lrecord_type_buffer | |
323 pstructtype buffer | |
324 else | |
325 if $lrecord_type == lrecord_type_char_table | |
326 pptype Lisp_Char_Table | |
327 else | |
328 if $lrecord_type == lrecord_type_char_table_entry | |
329 pptype Lisp_Char_Table_Entry | |
330 else | |
331 if $lrecord_type == lrecord_type_charset | |
332 pptype Lisp_Charset | |
333 else | |
334 if $lrecord_type == lrecord_type_coding_system | |
335 pptype Lisp_Coding_System | |
336 else | |
337 if $lrecord_type == lrecord_type_color_instance | |
338 pptype Lisp_Color_Instance | |
339 else | |
340 if $lrecord_type == lrecord_type_command_builder | |
341 pptype command_builder | |
342 else | |
343 if $lrecord_type == lrecord_type_compiled_function | |
344 pptype Lisp_Compiled_Function | |
345 else | |
346 if $lrecord_type == lrecord_type_console | |
347 pstructtype console | |
348 else | |
349 if $lrecord_type == lrecord_type_database | |
350 pptype Lisp_Database | |
351 else | |
352 if $lrecord_type == lrecord_type_device | |
353 pstructtype device | |
354 else | |
355 if $lrecord_type == lrecord_type_event | |
356 pptype Lisp_Event | |
357 else | |
358 if $lrecord_type == lrecord_type_extent | |
359 pstructtype extent | |
360 else | |
361 if $lrecord_type == lrecord_type_extent_auxiliary | |
362 pstructtype extent_auxiliary | |
363 else | |
364 if $lrecord_type == lrecord_type_extent_info | |
365 pstructtype extent_info | |
366 else | |
367 if $lrecord_type == lrecord_type_face | |
368 pptype Lisp_Face | |
369 else | |
370 if $lrecord_type == lrecord_type_float | |
371 pptype Lisp_Float | |
372 else | |
373 if $lrecord_type == lrecord_type_font_instance | |
374 pptype Lisp_Font_Instance | |
375 else | |
376 if $lrecord_type == lrecord_type_frame | |
377 pstructtype frame | |
378 else | |
379 if $lrecord_type == lrecord_type_glyph | |
380 pptype Lisp_Glyph | |
381 else | |
382 if $lrecord_type == lrecord_type_gui_item | |
383 pptype Lisp_Gui_Item | |
384 else | |
385 if $lrecord_type == lrecord_type_hash_table | |
386 pptype Lisp_Hash_Table | |
387 else | |
388 if $lrecord_type == lrecord_type_image_instance | |
389 pptype Lisp_Image_Instance | |
390 else | |
391 if $lrecord_type == lrecord_type_keymap | |
392 pptype Lisp_Keymap | |
393 else | |
5598
bccc91a65536
Fix .gdbinit and .dbxrc when using the new garbage collector.
Marcus Crestani <crestani@informatik.uni-tuebingen.de>
parents:
5437
diff
changeset
|
394 #ifndef NEW_GC |
3418 | 395 if $lrecord_type == lrecord_type_lcrecord_list |
396 pstructtype lcrecord_list | |
397 else | |
5598
bccc91a65536
Fix .gdbinit and .dbxrc when using the new garbage collector.
Marcus Crestani <crestani@informatik.uni-tuebingen.de>
parents:
5437
diff
changeset
|
398 #endif |
3418 | 399 if $lrecord_type == lrecord_type_ldap |
400 pptype Lisp_LDAP | |
401 else | |
402 if $lrecord_type == lrecord_type_lstream | |
403 pstructtype lstream | |
404 else | |
405 if $lrecord_type == lrecord_type_marker | |
406 pptype Lisp_Marker | |
407 else | |
408 if $lrecord_type == lrecord_type_opaque | |
409 pptype Lisp_Opaque | |
410 else | |
411 if $lrecord_type == lrecord_type_opaque_ptr | |
412 pptype Lisp_Opaque_Ptr | |
413 else | |
414 if $lrecord_type == lrecord_type_process | |
415 pptype Lisp_Process | |
416 else | |
417 if $lrecord_type == lrecord_type_range_table | |
418 pptype Lisp_Range_Table | |
419 else | |
420 if $lrecord_type == lrecord_type_specifier | |
421 pptype Lisp_Specifier | |
422 else | |
423 if $lrecord_type == lrecord_type_subr | |
424 pptype Lisp_Subr | |
425 else | |
426 if $lrecord_type == lrecord_type_symbol_value_buffer_local | |
427 pstructtype symbol_value_buffer_local | |
428 else | |
429 if $lrecord_type == lrecord_type_symbol_value_forward | |
430 pstructtype symbol_value_forward | |
431 else | |
432 if $lrecord_type == lrecord_type_symbol_value_lisp_magic | |
433 pstructtype symbol_value_lisp_magic | |
434 else | |
435 if $lrecord_type == lrecord_type_symbol_value_varalias | |
436 pstructtype symbol_value_varalias | |
437 else | |
438 if $lrecord_type == lrecord_type_timeout | |
439 pptype Lisp_Timeout | |
440 else | |
441 if $lrecord_type == lrecord_type_toolbar_button | |
442 pstructtype toolbar_button | |
443 else | |
444 if $lrecord_type == lrecord_type_tooltalk_message | |
445 pptype Lisp_Tooltalk_Message | |
446 else | |
447 if $lrecord_type == lrecord_type_tooltalk_pattern | |
448 pptype Lisp_Tooltalk_Pattern | |
449 else | |
450 if $lrecord_type == lrecord_type_weak_list | |
451 pstructtype weak_list | |
452 else | |
453 if $lrecord_type == lrecord_type_window | |
454 pstructtype window | |
455 else | |
456 if $lrecord_type == lrecord_type_fc_pattern | |
457 pstructtype fc_pattern | |
458 else | |
3934 | 459 if $lrecord_type == lrecord_type_fc_config |
460 pstructtype fc_config | |
3418 | 461 else |
462 echo Unknown Lisp Object type\n | |
5598
bccc91a65536
Fix .gdbinit and .dbxrc when using the new garbage collector.
Marcus Crestani <crestani@informatik.uni-tuebingen.de>
parents:
5437
diff
changeset
|
463 print $lrecord_type |
3418 | 464 print $arg0 |
465 ## Barf, gag, retch | |
466 end | |
467 end | |
468 end | |
469 end | |
470 end | |
471 end | |
5598
bccc91a65536
Fix .gdbinit and .dbxrc when using the new garbage collector.
Marcus Crestani <crestani@informatik.uni-tuebingen.de>
parents:
5437
diff
changeset
|
472 #ifndef NEW_GC |
3418 | 473 end |
5598
bccc91a65536
Fix .gdbinit and .dbxrc when using the new garbage collector.
Marcus Crestani <crestani@informatik.uni-tuebingen.de>
parents:
5437
diff
changeset
|
474 #endif |
3418 | 475 end |
476 end | |
477 end | |
478 end | |
479 end | |
480 end | |
481 end | |
482 end | |
483 end | |
484 end | |
485 ## Repeat after me... gdb sux, gdb sux, gdb sux... | |
486 end | |
487 end | |
488 end | |
489 end | |
490 end | |
491 end | |
492 end | |
493 end | |
494 end | |
495 end | |
496 end | |
497 end | |
498 end | |
499 end | |
500 end | |
501 end | |
502 end | |
503 end | |
504 ## Are we having fun yet?? | |
505 end | |
506 end | |
507 end | |
508 end | |
509 end | |
510 end | |
511 end | |
512 end | |
513 end | |
514 end | |
515 end | |
516 end | |
517 end | |
518 end | |
519 end | |
520 end | |
521 end | |
522 end | |
523 end | |
524 | |
525 document pobj | |
526 Usage: pobj lisp_object | |
527 Print the internal C representation of a Lisp Object. | |
528 end | |
529 | |
530 ## ------------------------------------------------------------- | |
531 ## functions to test the debugging support itself. | |
532 ## If you change this file, make sure the following still work... | |
533 ## ------------------------------------------------------------- | |
534 define test_xtype | |
535 printf "Vemacs_major_version: " | |
536 xtype Vemacs_major_version | |
537 printf "Vhelp_char: " | |
538 xtype Vhelp_char | |
539 printf "Qnil: " | |
540 xtype Qnil | |
541 printf "Qunbound: " | |
542 xtype Qunbound | |
543 printf "Vobarray: " | |
544 xtype Vobarray | |
545 printf "Vall_weak_lists: " | |
546 xtype Vall_weak_lists | |
547 printf "Vxemacs_codename: " | |
548 xtype Vxemacs_codename | |
549 end | |
550 | |
551 define test_pobj | |
552 printf "Vemacs_major_version: " | |
553 pobj Vemacs_major_version | |
554 printf "Vhelp_char: " | |
555 pobj Vhelp_char | |
556 printf "Qnil: " | |
557 pobj Qnil | |
558 printf "Qunbound: " | |
559 pobj Qunbound | |
560 printf "Vobarray: " | |
561 pobj Vobarray | |
562 printf "Vall_weak_lists: " | |
563 pobj Vall_weak_lists | |
564 printf "Vxemacs_codename: " | |
565 pobj Vxemacs_codename | |
566 end | |
567 |