annotate src/dbxrc @ 338:d486d167960c

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