annotate src/debug.c @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 697ef44129c6
children
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
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
42 static Lisp_Object Qredisplay, Qbuffers, Qfaces, Qwindows, Qframes, Qdevices;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 struct debug_classes active_debug_classes;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 enum debug_loop
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 {
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
48 ADD,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
49 DELETE,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
50 LIST,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
51 ACTIVE,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
52 INIT,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
53 VALIDATE,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
54 TYPE,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
55 SETTYPE
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 static Lisp_Object
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 xemacs_debug_loop (enum debug_loop op, Lisp_Object class, Lisp_Object type)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 {
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
61 int flag = (op == ADD) ? 1 : 0;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 Lisp_Object retval = Qnil;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 280
diff changeset
64 #define FROB(item) \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
65 if (op == LIST || op == ACTIVE || op == INIT || EQ (class, Q##item)) \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 { \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
67 if (op == ADD || op == DELETE || op == INIT) \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 active_debug_classes.item = flag; \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
69 else if (op == LIST \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
70 || (op == ACTIVE && active_debug_classes.item)) \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 retval = Fcons (Q##item, retval); \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
72 else if (op == VALIDATE) \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 return Qt; \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
74 else if (op == SETTYPE) \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 active_debug_classes.types_of_##item = XINT (type); \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
76 else if (op == TYPE) \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 280
diff changeset
77 retval = make_int (active_debug_classes.types_of_##item); \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
78 if (op == INIT) active_debug_classes.types_of_##item = VALBITS; \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 FROB (redisplay);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 FROB (buffers);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 FROB (extents);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 FROB (faces);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 FROB (windows);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 FROB (frames);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 FROB (devices);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 FROB (byte_code);
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 20
diff changeset
89
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 return retval;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 #undef FROB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
94 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
95 Add a debug class to the list of active classes.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
96 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
97 (class))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 {
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
99 if (NILP (xemacs_debug_loop (VALIDATE, class, Qnil)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 error ("No such debug class exists");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 else
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
102 xemacs_debug_loop (ADD, class, Qnil);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
104 return (xemacs_debug_loop (ACTIVE, Qnil, Qnil));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
107 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
108 Delete a debug class from the list of active classes.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
109 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
110 (class))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 {
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
112 if (NILP (xemacs_debug_loop (VALIDATE, class, Qnil)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 error ("No such debug class exists");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 else
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
115 xemacs_debug_loop (DELETE, class, Qnil);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
117 return (xemacs_debug_loop (ACTIVE, Qnil, Qnil));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
120 DEFUN ("debug-classes-being-checked", Fdebug_classes_being_checked, 0, 0, 0, /*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 Return a list of active debug classes.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
122 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
123 ())
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 {
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
125 return (xemacs_debug_loop (ACTIVE, Qnil, Qnil));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
128 DEFUN ("debug-classes-list", Fdebug_classes_list, 0, 0, 0, /*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 Return a list of all defined debug classes.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
130 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
131 ())
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 {
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
133 return (xemacs_debug_loop (LIST, Qnil, Qnil));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
136 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
137 Set which classes of debug statements should be active.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 CLASSES should be a list of debug classes.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
139 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
140 (classes))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 Lisp_Object rest;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 CHECK_LIST (classes);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 /* Make sure all objects in the list are valid. If anyone is not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 valid, reject the entire list without doing anything. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 LIST_LOOP (rest, classes )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 {
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
150 if (NILP (xemacs_debug_loop (VALIDATE, XCAR (rest), Qnil)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 error ("Invalid object in class list");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 LIST_LOOP (rest, classes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 Fadd_debug_class_to_check (XCAR (rest));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
157 return (xemacs_debug_loop (ACTIVE, Qnil, Qnil));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
160 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
161 For the given debug CLASS, set which TYPES are actually interesting.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 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
163 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
164 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
165 (class, type))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 CHECK_INT (type);
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
168 if (NILP (xemacs_debug_loop (VALIDATE, class, Qnil)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 error ("Invalid debug class");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
171 xemacs_debug_loop (SETTYPE, class, type);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
173 return (xemacs_debug_loop (TYPE, class, Qnil));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
176 DEFUN ("debug-types-being-checked", Fdebug_types_being_checked, 1, 1, 0, /*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 For the given CLASS, return the associated type value.
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
178 */
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
179 (class))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 {
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
181 if (NILP (xemacs_debug_loop (VALIDATE, class, Qnil)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 error ("Invalid debug class");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
184 return (xemacs_debug_loop (TYPE, class, Qnil));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 void
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 syms_of_debug (void)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 defsymbol (&Qredisplay, "redisplay");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 defsymbol (&Qbuffers, "buffers");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 defsymbol (&Qfaces, "faces");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 defsymbol (&Qwindows, "windows");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 defsymbol (&Qframes, "frames");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 defsymbol (&Qdevices, "devices");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
197 DEFSUBR (Fadd_debug_class_to_check);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
198 DEFSUBR (Fdelete_debug_class_to_check);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
199 DEFSUBR (Fdebug_classes_being_checked);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
200 DEFSUBR (Fdebug_classes_list);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
201 DEFSUBR (Fset_debug_classes_to_check);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
202 DEFSUBR (Fset_debug_class_types_to_check);
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 0
diff changeset
203 DEFSUBR (Fdebug_types_being_checked);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 void
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
207 reinit_vars_of_debug (void)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 /* If you need to have any classes active early on in startup, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 the flags should be set here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 All functions called by this function are "allowed" according
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 to emacs.c. */
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
213 xemacs_debug_loop (INIT, Qnil, Qnil);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 }
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
215
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
216 void
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
217 vars_of_debug (void)
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
218 {
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
219 reinit_vars_of_debug ();
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
220 }