date and time created 88/12/12 20:54:57 by kfall
[unix-history] / usr / src / old / dbx / events.c
index 2fc20c2..7a2704e 100644 (file)
@@ -5,10 +5,10 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)events.c   5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)events.c   5.3 (Berkeley) %G%";
 #endif not lint
 
 #endif not lint
 
-static char rcsid[] = "$Header: events.c,v 1.5 84/12/26 10:39:26 linton Exp $";
+static char rcsid[] = "$Header: events.c,v 1.3 87/07/08 18:46:02 donn Exp $";
 
 /*
  * Event/breakpoint managment.
 
 /*
  * Event/breakpoint managment.
@@ -28,25 +28,34 @@ static char rcsid[] = "$Header: events.c,v 1.5 84/12/26 10:39:26 linton Exp $";
 #include "lists.h"
 
 #ifndef public
 #include "lists.h"
 
 #ifndef public
+
 typedef struct Event *Event;
 typedef struct Breakpoint *Breakpoint;
 
 typedef struct Event *Event;
 typedef struct Breakpoint *Breakpoint;
 
-boolean inst_tracing;
-boolean single_stepping;
-boolean isstopped;
-
 #include "symbols.h"
 
 #include "symbols.h"
 
-Symbol linesym;
-Symbol procsym;
-Symbol pcsym;
-Symbol retaddrsym;
-
 #define addevent(cond, cmdlist) event_alloc(false, cond, cmdlist)
 #define event_once(cond, cmdlist) event_alloc(true, cond, cmdlist)
 
 #define addevent(cond, cmdlist) event_alloc(false, cond, cmdlist)
 #define event_once(cond, cmdlist) event_alloc(true, cond, cmdlist)
 
+/*
+ * When tracing variables we keep a copy of their most recent value
+ * and compare it to the current one each time a breakpoint occurs.
+ * MAXTRSIZE is the maximum size variable we allow.
+ */
+
+#define MAXTRSIZE 512
+
 #endif
 
 #endif
 
+public boolean inst_tracing;
+public boolean single_stepping;
+public boolean isstopped;
+
+public Symbol linesym;
+public Symbol procsym;
+public Symbol pcsym;
+public Symbol retaddrsym;
+
 struct Event {
     unsigned int id;
     boolean temporary;
 struct Event {
     unsigned int id;
     boolean temporary;
@@ -456,7 +465,7 @@ Cmdlist actions;
     p->temporary = false;
     if (tracebpts) {
        if (e == nil) {
     p->temporary = false;
     if (tracebpts) {
        if (e == nil) {
-           printf("new bp at 0x%x for event ??\n", addr, e->id);
+           printf("new bp at 0x%x for event ??\n", addr);
        } else {
            printf("new bp at 0x%x for event %d\n", addr, e->id);
        }
        } else {
            printf("new bp at 0x%x for event %d\n", addr, e->id);
        }
@@ -689,14 +698,6 @@ boolean iscall;
     return false;
 }
 
     return false;
 }
 
-/*
- * When tracing variables we keep a copy of their most recent value
- * and compare it to the current one each time a breakpoint occurs.
- * MAXTRSIZE is the maximum size variable we allow.
- */
-
-#define MAXTRSIZE 512
-
 /*
  * List of variables being watched.
  */
 /*
  * List of variables being watched.
  */