annotate src/debug.c @ 298:70ad99077275 r21-0b47

Import from CVS: tag r21-0b47
author cvs
date Mon, 13 Aug 2007 10:39:40 +0200
parents 7df0dd720c89
children 8626e4521993
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Debugging aids -- togglable assertions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /* Synched up with: Not in FSF. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 /* This file has been Mule-ized. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 /* Written by Chuck Thompson */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 #include <config.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 #include "lisp.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #include "debug.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 #include "bytecode.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 * To add a new debug class:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 * 1. Add a symbol definition for it here, if one doesn't exist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 * elsewhere. If you add it here, make sure to add a defsymbol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 * line for it in syms_of_debug.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 * 2. Add an extern definition for the symbol to debug.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 * 3. Add entries for the class to struct debug_classes in debug.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 * 4. Add a FROB line for it in xemacs_debug_loop.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 Lisp_Object Qredisplay, Qbuffers, Qfaces;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 Lisp_Object Qwindows, Qframes, Qdevices;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 struct debug_classes active_debug_classes;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 enum debug_loop
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ADD,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 DELETE,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 LIST,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ACTIVE,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 INIT,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 VALIDATE,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 TYPE,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 SETTYPE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 static Lisp_Object
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 xemacs_debug_loop (enum debug_loop op, Lisp_Object class, Lisp_Object type)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 int flag = ((op == ADD) ? 1 : 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 Lisp_Object retval = Qnil;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 #define FROB(item)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 if (op == LIST || op == ACTIVE || op == INIT || EQ (class, Q##item)) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 { \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 if (op == ADD || op == DELETE || op == INIT) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 active_debug_classes.item = flag; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 else if (op == LIST \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 || (op == ACTIVE && active_debug_classes.item)) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 retval = Fcons (Q##item, retval); \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 else if (op == VALIDATE) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 return Qt; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 else if (op == SETTYPE) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 active_debug_classes.types_of_##item = XINT (type); \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 else if (op == TYPE) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 retval = make_int (active_debug_classes.types_of_##item), Qnil; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 if (op == INIT) active_debug_classes.types_of_##item = VALBITS; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 FROB (redisplay);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 FROB (buffers);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 FROB (extents);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 FROB (faces);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 FROB (windows);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 FROB (frames);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 FROB (devices);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 FROB (byte_code);
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 20
diff changeset
90
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 return retval;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 #undef FROB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
95 DEFUN ("add-debug-class-to-check", Fadd_debug_class_to_check, 1, 1, 0, /*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 Add a debug class to the list of active classes.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
97 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
98 (class))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 if (NILP (xemacs_debug_loop (VALIDATE, class, Qnil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 error ("No such debug class exists");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 xemacs_debug_loop (ADD, class, Qnil);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 return (xemacs_debug_loop (ACTIVE, Qnil, Qnil));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
108 DEFUN ("delete-debug-class-to-check", Fdelete_debug_class_to_check, 1, 1, 0, /*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 Delete a debug class from the list of active classes.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
110 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
111 (class))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 if (NILP (xemacs_debug_loop (VALIDATE, class, Qnil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 error ("No such debug class exists");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 xemacs_debug_loop (DELETE, class, Qnil);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 return (xemacs_debug_loop (ACTIVE, Qnil, Qnil));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
121 DEFUN ("debug-classes-being-checked", Fdebug_classes_being_checked, 0, 0, 0, /*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 Return a list of active debug classes.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
123 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
124 ())
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 return (xemacs_debug_loop (ACTIVE, Qnil, Qnil));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
129 DEFUN ("debug-classes-list", Fdebug_classes_list, 0, 0, 0, /*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 Return a list of all defined debug classes.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
131 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
132 ())
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 return (xemacs_debug_loop (LIST, Qnil, Qnil));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
137 DEFUN ("set-debug-classes-to-check", Fset_debug_classes_to_check, 1, 1, 0, /*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 Set which classes of debug statements should be active.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 CLASSES should be a list of debug classes.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
140 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
141 (classes))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 Lisp_Object rest;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 CHECK_LIST (classes);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 /* Make sure all objects in the list are valid. If anyone is not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 valid, reject the entire list without doing anything. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 LIST_LOOP (rest, classes )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 if (NILP (xemacs_debug_loop (VALIDATE, XCAR (rest), Qnil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 error ("Invalid object in class list");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 LIST_LOOP (rest, classes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 Fadd_debug_class_to_check (XCAR (rest));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 return (xemacs_debug_loop (ACTIVE, Qnil, Qnil));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
161 DEFUN ("set-debug-class-types-to-check", Fset_debug_class_types_to_check, 2, 2, 0, /*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 For the given debug CLASS, set which TYPES are actually interesting.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 TYPES should be an integer representing the or'd value of all desired types.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 Lists of defined types and their values are located in the source code.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
165 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
166 (class, type))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 CHECK_INT (type);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 if (NILP (xemacs_debug_loop (VALIDATE, class, Qnil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 error ("Invalid debug class");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 xemacs_debug_loop (SETTYPE, class, type);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 return (xemacs_debug_loop (TYPE, class, Qnil));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
177 DEFUN ("debug-types-being-checked", Fdebug_types_being_checked, 1, 1, 0, /*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 For the given CLASS, return the associated type value.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
179 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
180 (class))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 if (NILP (xemacs_debug_loop (VALIDATE, class, Qnil)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 error ("Invalid debug class");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 return (xemacs_debug_loop (TYPE, class, Qnil));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 void
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 syms_of_debug (void)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 defsymbol (&Qredisplay, "redisplay");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 defsymbol (&Qbuffers, "buffers");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 defsymbol (&Qfaces, "faces");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 defsymbol (&Qwindows, "windows");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 defsymbol (&Qframes, "frames");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 defsymbol (&Qdevices, "devices");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 /* defsymbol (&Qbyte_code, "byte-code"); in bytecode.c */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
199 DEFSUBR (Fadd_debug_class_to_check);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
200 DEFSUBR (Fdelete_debug_class_to_check);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
201 DEFSUBR (Fdebug_classes_being_checked);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
202 DEFSUBR (Fdebug_classes_list);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
203 DEFSUBR (Fset_debug_classes_to_check);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
204 DEFSUBR (Fset_debug_class_types_to_check);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
205 DEFSUBR (Fdebug_types_being_checked);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 void
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 vars_of_debug (void)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 /* If you need to have any classes active early on in startup, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 the flags should be set here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 All functions called by this function are "allowed" according
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 to emacs.c. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 xemacs_debug_loop (INIT, Qnil, Qnil);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 }