annotate src/.dbxrc @ 438:84b14dcb0985 r21-2-27

Import from CVS: tag r21-2-27
author cvs
date Mon, 13 Aug 2007 11:32:25 +0200
parents
children 8de8e3f6228a
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
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
42 ignore POLL
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
43 ignore IO
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
44
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
45 document lbt << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
46 Usage: lbt
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
47 Print the current Lisp stack trace.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
48 Requires a running xemacs process.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
49 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
50
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
51 function lbt {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
52 call debug_backtrace()
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
53 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
54
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
55 document ldp << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
56 Usage: ldp lisp_object
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
57 Print a Lisp Object value using the Lisp printer.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
58 Requires a running xemacs process.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
59 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
60
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
61 function ldp {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
62 call debug_print ($1);
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
63 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
64
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
65 # A bug in dbx prevents string variables from having values beginning with `-'!!
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
66 function XEmacsInit {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
67 function ToInt { eval "$1=\$[(int) $1]"; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
68 ToInt dbg_USE_UNION_TYPE
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
69 ToInt Lisp_Type_Int
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
70 ToInt Lisp_Type_Char
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
71 ToInt Lisp_Type_Cons
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
72 ToInt Lisp_Type_String
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
73 ToInt Lisp_Type_Vector
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
74 ToInt Lisp_Type_Symbol
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
75 ToInt Lisp_Type_Record
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
76 ToInt dbg_valbits
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
77 ToInt dbg_gctypebits
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
78 function ToLong { eval "$1=\$[(unsigned long) $1]"; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
79 ToLong dbg_valmask
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
80 ToLong dbg_typemask
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
81 xemacs_initted=yes
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
82 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
83
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
84 function printvar {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
85 for i in $*; do eval "echo $i=\$$i"; done
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
86 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
87
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
88 document decode_object << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
89 Usage: decode_object lisp_object
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
90 Extract implementation information from a Lisp Object.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
91 Defines variables $val, $type and $imp.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
92 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
93
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
94 # Various dbx bugs cause ugliness in following code
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
95 function decode_object {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
96 if test -z "$xemacs_initted"; then XEmacsInit; fi;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
97 if test $dbg_USE_UNION_TYPE = 1; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
98 # Repeat after me... dbx sux, dbx sux, dbx sux...
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
99 # Allow both `pobj Qnil' and `pobj 0x82746834' to work
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
100 case $(whatis $1) in
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
101 *Lisp_Object*) obj="$[(unsigned long)(($1).i)]";;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
102 *) obj="$[(unsigned long)($1)]";;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
103 esac
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
104 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
105 obj="$[(unsigned long)($1)]";
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
106 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
107 if test $[(int)($obj & 1)] = 1; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
108 # It's an int
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
109 val=$[(long)(((unsigned long long)$obj) >> 1)]
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
110 type=$Lisp_Type_Int
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
111 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
112 type=$[(int)(((void*)$obj) & $dbg_typemask)]
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
113 if test $type = $Lisp_Type_Char; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
114 val=$[(void*)(long)(((unsigned long long)($obj & $dbg_valmask)) >> $dbg_gctypebits)]
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
115 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
116 # It's a record pointer
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
117 val=$[(void*)$obj]
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
118 if test "$val" = "(nil)"; then type=null_pointer; fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
119 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
120 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
121
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
122 if test $type = $Lisp_Type_Record; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
123 typeset lheader="((struct lrecord_header *) $val)"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
124 imp=$[(void*)(lrecord_implementations_table[$lheader->type])]
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
125 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
126 imp="0xdeadbeef"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
127 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
128 # printvar obj val type imp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
129 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
130
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
131 function xint {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
132 decode_object "$*"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
133 print (long) ($val)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
134 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
135
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
136 document xtype << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
137 Usage: xtype lisp_object
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
138 Print the Lisp type of a lisp object.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
139 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
140
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
141 function xtype {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
142 decode_object "$*"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
143 if test $type = $Lisp_Type_Int; then echo "int"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
144 elif test $type = $Lisp_Type_Char; then echo "char"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
145 elif test $type = $Lisp_Type_Symbol; then echo "symbol"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
146 elif test $type = $Lisp_Type_String; then echo "string"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
147 elif test $type = $Lisp_Type_Vector; then echo "vector"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
148 elif test $type = $Lisp_Type_Cons; then echo "cons"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
149 elif test $type = null_pointer; then echo "null_pointer"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
150 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
151 echo "record type with name: $[((struct lrecord_implementation *)$imp)->name]"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
152 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
153 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
154
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
155 function lisp-shadows {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
156 run -batch -vanilla -f list-load-path-shadows
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
157 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
158
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
159 function environment-to-run-temacs {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
160 unset EMACSLOADPATH
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
161 export EMACSBOOTSTRAPLOADPATH=../lisp/:..
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
162 export EMACSBOOTSTRAPMODULEPATH=../modules/:..
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
163 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
164
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
165 document run-temacs << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
166 Usage: run-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
167 Run temacs interactively, like xemacs.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
168 Use this with debugging tools (like purify) that cannot deal with dumping,
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
169 or when temacs builds successfully, but xemacs does not.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
170 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
171
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
172 function run-temacs {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
173 environment-to-run-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
174 run -batch -l ../lisp/loadup.el run-temacs -q ${1+"$@"}
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
175 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
176
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
177 document check-xemacs << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
178 Usage: check-xemacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
179 Run the test suite. Equivalent to 'make check'.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
180 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
181
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
182 function check-xemacs {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
183 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
184 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
185
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
186 document check-temacs << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
187 Usage: check-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
188 Run the test suite on temacs. Equivalent to 'make check-temacs'.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
189 Use this with debugging tools (like purify) that cannot deal with dumping,
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
190 or when temacs builds successfully, but xemacs does not.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
191 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
192
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
193 function check-temacs {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
194 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
195 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
196
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
197 document update-elc << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
198 Usage: update-elc
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
199 Run the core lisp byte compilation part of the build procedure.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
200 Use when debugging temacs, not xemacs!
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
201 Use this when temacs builds successfully, but xemacs does not.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
202 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
203
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
204 function update-elc {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
205 environment-to-run-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
206 run -batch -l ../lisp/update-elc.el
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
207 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
208
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
209 document dump-temacs << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
210 Usage: dump-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
211 Run the dumping part of the build procedure.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
212 Use when debugging temacs, not xemacs!
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
213 Use this when temacs builds successfully, but xemacs does not.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
214 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
215
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
216 function dump-temacs {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
217 environment-to-run-temacs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
218 run -batch -l ../lisp/loadup.el dump
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
219 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
220
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
221 function pstruct {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
222 xstruct="((struct $1 *) $val)"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
223 print $xstruct
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
224 print *$xstruct
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
225 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
226
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
227 function lrecord_type_p {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
228 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
229 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
230
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
231 document pobj << 'end'
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
232 Usage: pobj lisp_object
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
233 Print the internal C representation of a Lisp Object.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
234 end
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
235
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
236 function pobj {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
237 decode_object $1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
238 if test $type = $Lisp_Type_Int; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
239 print -f"Integer: %d" $val
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
240 elif test $type = $Lisp_Type_Char; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
241 if test $[$val > 32 && $val < 128] = 1; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
242 print -f"Char: %c" $val
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
243 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
244 print -f"Char: %d" $val
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
245 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
246 elif test $type = $Lisp_Type_String || lrecord_type_p string; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
247 pstruct Lisp_String
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
248 elif test $type = $Lisp_Type_Cons || lrecord_type_p cons; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
249 pstruct Lisp_Cons
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
250 elif test $type = $Lisp_Type_Symbol || lrecord_type_p symbol; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
251 pstruct Lisp_Symbol
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
252 echo "Symbol name: $[(char *)($xstruct->name->data)]"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
253 elif test $type = $Lisp_Type_Vector || lrecord_type_p vector; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
254 pstruct Lisp_Vector
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
255 echo "Vector of length $[$xstruct->size]"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
256 elif lrecord_type_p bit_vector; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
257 pstruct Lisp_Bit_Vector
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
258 elif lrecord_type_p buffer; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
259 pstruct buffer
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
260 elif lrecord_type_p char_table; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
261 pstruct Lisp_Char_Table
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
262 elif lrecord_type_p char_table_entry; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
263 pstruct Lisp_Char_Table_Entry
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
264 elif lrecord_type_p charset; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
265 pstruct Lisp_Charset
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
266 elif lrecord_type_p coding_system; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
267 pstruct Lisp_Coding_System
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
268 elif lrecord_type_p color_instance; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
269 pstruct Lisp_Color_Instance
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
270 elif lrecord_type_p command_builder; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
271 pstruct command_builder
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
272 elif lrecord_type_p compiled_function; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
273 pstruct Lisp_Compiled_Function
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
274 elif lrecord_type_p console; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
275 pstruct console
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
276 elif lrecord_type_p database; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
277 pstruct Lisp_Database
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
278 elif lrecord_type_p device; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
279 pstruct device
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
280 elif lrecord_type_p event; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
281 pstruct Lisp_Event
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
282 elif lrecord_type_p extent; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
283 pstruct extent
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
284 elif lrecord_type_p extent_auxiliary; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
285 pstruct extent_auxiliary
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
286 elif lrecord_type_p extent_info; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
287 pstruct extent_info
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
288 elif lrecord_type_p face; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
289 pstruct Lisp_Face
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
290 elif lrecord_type_p float; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
291 pstruct Lisp_Float
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
292 elif lrecord_type_p font_instance; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
293 pstruct Lisp_Font_Instance
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
294 elif lrecord_type_p frame; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
295 pstruct frame
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
296 elif lrecord_type_p glyph; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
297 pstruct Lisp_Glyph
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
298 elif lrecord_type_p hash_table; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
299 pstruct Lisp_Hash_Table
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
300 elif lrecord_type_p image_instance; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
301 pstruct Lisp_Image_Instance
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
302 elif lrecord_type_p keymap; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
303 pstruct Lisp_Keymap
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
304 elif lrecord_type_p lcrecord_list; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
305 pstruct lcrecord_list
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
306 elif lrecord_type_p lstream; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
307 pstruct lstream
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
308 elif lrecord_type_p marker; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
309 pstruct Lisp_Marker
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
310 elif lrecord_type_p opaque; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
311 pstruct Lisp_Opaque
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
312 elif lrecord_type_p opaque_ptr; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
313 pstruct Lisp_Opaque_Ptr
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
314 elif lrecord_type_p popup_data; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
315 pstruct popup_data
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
316 elif lrecord_type_p process; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
317 pstruct Lisp_Process
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
318 elif lrecord_type_p range_table; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
319 pstruct Lisp_Range_Table
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
320 elif lrecord_type_p specifier; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
321 pstruct Lisp_Specifier
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
322 elif lrecord_type_p subr; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
323 pstruct Lisp_Subr
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
324 elif lrecord_type_p symbol_value_buffer_local; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
325 pstruct symbol_value_buffer_local
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
326 elif lrecord_type_p symbol_value_forward; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
327 pstruct symbol_value_forward
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
328 elif lrecord_type_p symbol_value_lisp_magic; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
329 pstruct symbol_value_lisp_magic
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
330 elif lrecord_type_p symbol_value_varalias; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
331 pstruct symbol_value_varalias
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
332 elif lrecord_type_p toolbar_button; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
333 pstruct toolbar_button
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
334 elif lrecord_type_p tooltalk_message; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
335 pstruct Lisp_Tooltalk_Message
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
336 elif lrecord_type_p tooltalk_pattern; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
337 pstruct Lisp_Tooltalk_Pattern
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
338 elif lrecord_type_p weak_list; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
339 pstruct weak_list
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
340 elif lrecord_type_p window; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
341 pstruct window
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
342 elif lrecord_type_p window_configuration; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
343 pstruct window_config
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
344 elif test "$type" = "null_pointer"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
345 echo "Lisp Object is a null pointer!!"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
346 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
347 echo "Unknown Lisp Object type"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
348 print $1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
349 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
350 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
351
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
352 function pproc {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
353 print *(`process.c`struct Lisp_Process*)$1 ;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
354 ldp "(`process.c`struct Lisp_Process*)$1->name" ;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
355 ldp "(`process.c`struct Lisp_Process*)$1->command" ;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
356 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
357
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
358 dbxenv suppress_startup_message 4.0
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
359 dbxenv mt_watchpoints on
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
360
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
361 function dp_core {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
362 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
363 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
364
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
365 # Barf!
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
366 function print_shell {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
367 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
368 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
369
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 # functions to test the debugging support itself.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
372 # If you change this file, make sure the following still work...
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
373 # -------------------------------------------------------------
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
374 function test_xtype {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
375 function doit { echo -n "$1: "; xtype "$1"; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
376 test_various_objects
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
377 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
378
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
379 function test_pobj {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
380 function doit { echo '==============================='; echo -n "$1: "; pobj "$1"; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
381 test_various_objects
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
382 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
383
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
384 function test_various_objects {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
385 doit Vemacs_major_version
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
386 doit Vhelp_char
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
387 doit Qnil
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
388 doit Qunbound
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
389 doit Vobarray
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
390 doit Vall_weak_lists
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
391 doit Vxemacs_codename
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents:
diff changeset
392 }