1 /**********
2 Copyright 1990 Regents of the University of California.  All rights reserved.
3 Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
4 **********/
5 
6 /*
7  *
8  * Stuff for debugging a spice run. Debugging information will be printed
9  * on the standard output.
10  */
11 
12 #define DB_SAVE      1   /* Save a node. */
13 #define DB_TRACE     2   /* Print the value of a node every iteration. */
14 #define DB_STOPAFTER 3   /* Break after this many iterations. */
15 #define DB_STOPWHEN  4   /* Break when a node reaches this value. */
16 #define DB_IPLOT     5   /* Incrementally plot the stuff. */
17 #define DB_IPLOTALL  6   /* Incrementally plot everything. */
18 #define DB_DEADIPLOT 7   /* Incrementally plot the stuff. */
19 
20 struct dbcomm {
21     int db_number;          /* The number of this debugging command. */
22     char db_type;           /* One of the above. */
23     char *db_nodename1;     /* What node. */
24     char *db_nodename2;     /* What node. */
25     int db_iteration;       /* For the DB_STOPAFTER command. */
26     int db_graphid;         /* If iplot, id of graph. */
27     struct dbcomm *db_also; /* Link for conjunctions. */
28     struct dbcomm *db_next; /* List of active debugging commands. */
29 } ;
30 
31 #ifdef __STDC__
32 extern void dbfree(struct dbcomm*);
33 #else
34 extern void dbfree( );
35 #endif
36