annotate src/.dbxrc @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 84b14dcb0985
children abe6d1db359e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
1 # -*- ksh -*-
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
2 # Copyright (C) 1998 Free Software Foundation, Inc.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
3
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
4 # This file is part of XEmacs.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
5
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
6 # XEmacs is free software; you can redistribute it and/or modify it
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
7 # under the terms of the GNU General Public License as published by the
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
8 # Free Software Foundation; either version 2, or (at your option) any
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
9 # later version.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
10
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
11 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
14 # for more details.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
15
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
16 # You should have received a copy of the GNU General Public License
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
17 # along with XEmacs; see the file COPYING. If not, write to
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
18 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
19 # Boston, MA 02111-1307, USA.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
20
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
21 # Author: Martin Buchholz
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
22
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
23 # You can use this file to debug XEmacs using Sun WorkShop's dbx.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
24
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
25 # Some functions defined here require a running process, but most
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
26 # don't. Considerable effort has been expended to this end.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
27
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
28 # Since this file is called `.dbxrc', it will be read by dbx
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
29 # automatically when dbx is run in the build directory, which is where
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
30 # developers usually debug their xemacs.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
31
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
32 # See also the comments in .gdbinit.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
33
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
34 # See also the question of the XEmacs FAQ, titled
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
35 # "How to Debug an XEmacs problem with a debugger".
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
36
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
37 # gdb sources the ./.gdbinit in _addition_ to ~/.gdbinit.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
38 # But dbx does _not_ source ~/.dbxrc if it found ./.dbxrc.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
39 # So we simulate the gdb algorithm by doing it ourselves here.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
40 if test -r $HOME/.dbxrc; then . $HOME/.dbxrc; fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
41
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
42 dbxenv language_mode ansic
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
43
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
44 ignore POLL
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
45 ignore IO
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
46
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
47 document lbt << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
48 Usage: lbt
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
49 Print the current Lisp stack trace.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
50 Requires a running xemacs process.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
51 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
52
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
53 function lbt {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
54 call debug_backtrace()
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
55 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
56
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
57 document ldp << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
58 Usage: ldp lisp_object
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
59 Print a Lisp Object value using the Lisp printer.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
60 Requires a running xemacs process.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
61 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
62
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
63 function ldp {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
64 call debug_print ($1);
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
65 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
66
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
67 # A bug in dbx prevents string variables from having values beginning with `-'!!
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
68 function XEmacsInit {
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
69 function ToInt { eval "$1=\$[(int) \`alloc.c\`$1]"; }
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
70 ToInt dbg_USE_UNION_TYPE
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
71 ToInt Lisp_Type_Int
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
72 ToInt Lisp_Type_Char
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
73 ToInt Lisp_Type_Cons
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
74 ToInt Lisp_Type_String
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
75 ToInt Lisp_Type_Vector
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
76 ToInt Lisp_Type_Symbol
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
77 ToInt Lisp_Type_Record
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
78 ToInt dbg_valbits
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
79 ToInt dbg_gctypebits
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
80 function ToLong { eval "$1=\$[(\`alloc.c\`unsigned long) \`alloc.c\`$1]"; }
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
81 ToLong dbg_valmask
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
82 ToLong dbg_typemask
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
83 xemacs_initted=yes
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
84 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
85
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
86 function printvar {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
87 for i in $*; do eval "echo $i=\$$i"; done
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
88 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
89
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
90 document decode_object << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
91 Usage: decode_object lisp_object
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
92 Extract implementation information from a Lisp Object.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
93 Defines variables $val, $type and $imp.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
94 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
95
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
96 # Various dbx bugs cause ugliness in following code
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
97 function decode_object {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
98 if test -z "$xemacs_initted"; then XEmacsInit; fi;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
99 if test $dbg_USE_UNION_TYPE = 1; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
100 # Repeat after me... dbx sux, dbx sux, dbx sux...
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
101 # Allow both `pobj Qnil' and `pobj 0x82746834' to work
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
102 case $(whatis $1) in
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
103 *Lisp_Object*) obj="$[(`alloc.c`unsigned long)(($1).i)]";;
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
104 *) obj="$[(`alloc.c`unsigned long)($1)]";;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
105 esac
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
106 else
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
107 obj="$[(`alloc.c`unsigned long)($1)]";
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
108 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
109 if test $[(int)($obj & 1)] = 1; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
110 # It's an int
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
111 val=$[(long)(((unsigned long long)$obj) >> 1)]
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
112 type=$Lisp_Type_Int
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
113 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
114 type=$[(int)(((void*)$obj) & $dbg_typemask)]
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
115 if test $type = $Lisp_Type_Char; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
116 val=$[(void*)(long)(((unsigned long long)($obj & $dbg_valmask)) >> $dbg_gctypebits)]
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
117 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
118 # It's a record pointer
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
119 val=$[(void*)$obj]
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
120 if test "$val" = "(nil)"; then type=null_pointer; fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
121 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
122 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
123
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
124 if test $type = $Lisp_Type_Record; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
125 typeset lheader="((struct lrecord_header *) $val)"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
126 imp=$[(void*)(`alloc.c`lrecord_implementations_table[$lheader->type])]
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
127 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
128 imp="0xdeadbeef"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
129 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
130 # printvar obj val type imp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
131 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
132
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
133 function xint {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
134 decode_object "$*"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
135 print (long) ($val)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
136 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
137
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
138 document xtype << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
139 Usage: xtype lisp_object
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
140 Print the Lisp type of a lisp object.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
141 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
142
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
143 function xtype {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
144 decode_object "$*"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
145 if test $type = $Lisp_Type_Int; then echo "int"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
146 elif test $type = $Lisp_Type_Char; then echo "char"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
147 elif test $type = $Lisp_Type_Symbol; then echo "symbol"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
148 elif test $type = $Lisp_Type_String; then echo "string"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
149 elif test $type = $Lisp_Type_Vector; then echo "vector"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
150 elif test $type = $Lisp_Type_Cons; then echo "cons"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
151 elif test $type = null_pointer; then echo "null_pointer"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
152 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
153 echo "record type with name: $[((struct lrecord_implementation *)$imp)->name]"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
154 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
155 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
156
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
157 function lisp-shadows {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
158 run -batch -vanilla -f list-load-path-shadows
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
159 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
160
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
161 function environment-to-run-temacs {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
162 unset EMACSLOADPATH
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
163 export EMACSBOOTSTRAPLOADPATH=../lisp/:..
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
164 export EMACSBOOTSTRAPMODULEPATH=../modules/:..
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
165 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
166
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
167 document run-temacs << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
168 Usage: run-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
169 Run temacs interactively, like xemacs.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
170 Use this with debugging tools (like purify) that cannot deal with dumping,
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
171 or when temacs builds successfully, but xemacs does not.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
172 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
173
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
174 function run-temacs {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
175 environment-to-run-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
176 run -batch -l ../lisp/loadup.el run-temacs -q ${1+"$@"}
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
177 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
178
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
179 document check-xemacs << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
180 Usage: check-xemacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
181 Run the test suite. Equivalent to 'make check'.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
182 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
183
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
184 function check-xemacs {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
185 run -batch -l ../tests/automated/test-harness.el -f batch-test-emacs ../tests/automated
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
186 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
187
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
188 document check-temacs << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
189 Usage: check-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
190 Run the test suite on temacs. Equivalent to 'make check-temacs'.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
191 Use this with debugging tools (like purify) that cannot deal with dumping,
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
192 or when temacs builds successfully, but xemacs does not.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
193 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
194
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
195 function check-temacs {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
196 run-temacs -q -batch -l ../tests/automated/test-harness.el -f batch-test-emacs ../tests/automated
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
197 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
198
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
199 document update-elc << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
200 Usage: update-elc
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
201 Run the core lisp byte compilation part of the build procedure.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
202 Use when debugging temacs, not xemacs!
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
203 Use this when temacs builds successfully, but xemacs does not.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
204 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
205
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
206 function update-elc {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
207 environment-to-run-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
208 run -batch -l ../lisp/update-elc.el
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
209 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
210
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
211 document dump-temacs << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
212 Usage: dump-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
213 Run the dumping part of the build procedure.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
214 Use when debugging temacs, not xemacs!
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
215 Use this when temacs builds successfully, but xemacs does not.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
216 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
217
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
218 function dump-temacs {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
219 environment-to-run-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
220 run -batch -l ../lisp/loadup.el dump
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
221 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
222
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
223 function pstruct {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
224 xstruct="((struct $1 *) $val)"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
225 print $xstruct
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
226 print *$xstruct
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
227 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
228
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
229 function lrecord_type_p {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
230 if eval test -z \"\$lrecord_$1\" && test $imp = $[(void*)(&lrecord_$1)]; then return 0; else return 1; fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
231 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
232
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
233 document pobj << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
234 Usage: pobj lisp_object
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
235 Print the internal C representation of a Lisp Object.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
236 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
237
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
238 function pobj {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
239 decode_object $1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
240 if test $type = $Lisp_Type_Int; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
241 print -f"Integer: %d" $val
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
242 elif test $type = $Lisp_Type_Char; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
243 if test $[$val > 32 && $val < 128] = 1; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
244 print -f"Char: %c" $val
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
245 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
246 print -f"Char: %d" $val
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
247 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
248 elif test $type = $Lisp_Type_String || lrecord_type_p string; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
249 pstruct Lisp_String
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
250 elif test $type = $Lisp_Type_Cons || lrecord_type_p cons; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
251 pstruct Lisp_Cons
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
252 elif test $type = $Lisp_Type_Symbol || lrecord_type_p symbol; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
253 pstruct Lisp_Symbol
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
254 echo "Symbol name: $[(char *)($xstruct->name->data)]"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
255 elif test $type = $Lisp_Type_Vector || lrecord_type_p vector; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
256 pstruct Lisp_Vector
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
257 echo "Vector of length $[$xstruct->size]"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
258 elif lrecord_type_p bit_vector; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
259 pstruct Lisp_Bit_Vector
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
260 elif lrecord_type_p buffer; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
261 pstruct buffer
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
262 elif lrecord_type_p char_table; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
263 pstruct Lisp_Char_Table
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
264 elif lrecord_type_p char_table_entry; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
265 pstruct Lisp_Char_Table_Entry
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
266 elif lrecord_type_p charset; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
267 pstruct Lisp_Charset
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
268 elif lrecord_type_p coding_system; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
269 pstruct Lisp_Coding_System
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
270 elif lrecord_type_p color_instance; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
271 pstruct Lisp_Color_Instance
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
272 elif lrecord_type_p command_builder; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
273 pstruct command_builder
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
274 elif lrecord_type_p compiled_function; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
275 pstruct Lisp_Compiled_Function
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
276 elif lrecord_type_p console; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
277 pstruct console
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
278 elif lrecord_type_p database; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
279 pstruct Lisp_Database
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
280 elif lrecord_type_p device; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
281 pstruct device
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
282 elif lrecord_type_p event; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
283 pstruct Lisp_Event
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
284 elif lrecord_type_p extent; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
285 pstruct extent
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
286 elif lrecord_type_p extent_auxiliary; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
287 pstruct extent_auxiliary
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
288 elif lrecord_type_p extent_info; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
289 pstruct extent_info
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
290 elif lrecord_type_p face; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
291 pstruct Lisp_Face
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
292 elif lrecord_type_p float; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
293 pstruct Lisp_Float
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
294 elif lrecord_type_p font_instance; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
295 pstruct Lisp_Font_Instance
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
296 elif lrecord_type_p frame; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
297 pstruct frame
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
298 elif lrecord_type_p glyph; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
299 pstruct Lisp_Glyph
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
300 elif lrecord_type_p hash_table; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
301 pstruct Lisp_Hash_Table
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
302 elif lrecord_type_p image_instance; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
303 pstruct Lisp_Image_Instance
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
304 elif lrecord_type_p keymap; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
305 pstruct Lisp_Keymap
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
306 elif lrecord_type_p lcrecord_list; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
307 pstruct lcrecord_list
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
308 elif lrecord_type_p lstream; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
309 pstruct lstream
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
310 elif lrecord_type_p marker; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
311 pstruct Lisp_Marker
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
312 elif lrecord_type_p opaque; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
313 pstruct Lisp_Opaque
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
314 elif lrecord_type_p opaque_ptr; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
315 pstruct Lisp_Opaque_Ptr
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
316 elif lrecord_type_p popup_data; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
317 pstruct popup_data
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
318 elif lrecord_type_p process; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
319 pstruct Lisp_Process
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
320 elif lrecord_type_p range_table; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
321 pstruct Lisp_Range_Table
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
322 elif lrecord_type_p specifier; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
323 pstruct Lisp_Specifier
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
324 elif lrecord_type_p subr; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
325 pstruct Lisp_Subr
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
326 elif lrecord_type_p symbol_value_buffer_local; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
327 pstruct symbol_value_buffer_local
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
328 elif lrecord_type_p symbol_value_forward; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
329 pstruct symbol_value_forward
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
330 elif lrecord_type_p symbol_value_lisp_magic; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
331 pstruct symbol_value_lisp_magic
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
332 elif lrecord_type_p symbol_value_varalias; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
333 pstruct symbol_value_varalias
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
334 elif lrecord_type_p toolbar_button; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
335 pstruct toolbar_button
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
336 elif lrecord_type_p tooltalk_message; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
337 pstruct Lisp_Tooltalk_Message
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
338 elif lrecord_type_p tooltalk_pattern; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
339 pstruct Lisp_Tooltalk_Pattern
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
340 elif lrecord_type_p weak_list; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
341 pstruct weak_list
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
342 elif lrecord_type_p window; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
343 pstruct window
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
344 elif lrecord_type_p window_configuration; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
345 pstruct window_config
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
346 elif test "$type" = "null_pointer"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
347 echo "Lisp Object is a null pointer!!"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
348 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
349 echo "Unknown Lisp Object type"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
350 print $1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
351 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
352 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
353
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
354 function pproc {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
355 print *(`process.c`struct Lisp_Process*)$1 ;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
356 ldp "(`process.c`struct Lisp_Process*)$1->name" ;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
357 ldp "(`process.c`struct Lisp_Process*)$1->command" ;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
358 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
359
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
360 dbxenv suppress_startup_message 4.0
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
361 dbxenv mt_watchpoints on
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
362
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
363 function dp_core {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
364 print ((struct x_frame *)(((struct frame*)(Fselected_frame(Qnil)&0x00FFFFFF))->frame_data))->widget->core
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
365 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
366
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
367 # Barf!
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
368 function print_shell {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
369 print *(`frame-x.c`TopLevelShellRec*) (((struct `frame-x.c`x_frame*) (((struct `frame-x.c`frame*) (Fselected_frame(Qnil)&0x00FFFFFF))->frame_data))->widget)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
370 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
371
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
372 # -------------------------------------------------------------
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
373 # functions to test the debugging support itself.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
374 # If you change this file, make sure the following still work...
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
375 # -------------------------------------------------------------
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
376 function test_xtype {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
377 function doit { echo -n "$1: "; xtype "$1"; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
378 test_various_objects
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
379 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
380
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
381 function test_pobj {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
382 function doit { echo '==============================='; echo -n "$1: "; pobj "$1"; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
383 test_various_objects
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
384 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
385
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
386 function test_various_objects {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
387 doit Vemacs_major_version
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
388 doit Vhelp_char
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
389 doit Qnil
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
390 doit Qunbound
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
391 doit Vobarray
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
392 doit Vall_weak_lists
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
393 doit Vxemacs_codename
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
394 }