* Copyright (c) 1980 The Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)status.c 5.2 (Berkeley) %G%";
* Print out what's currently being traced by looking at
* the currently active breakpoints.
* The list is in LIFO order, we print it FIFO by going recursive.
#define printnum(id) if (!isredirected()) printf("(%d) ", id)
printf("no trace's or stop's active\n");
n
= linelookup(p
->bpaddr
);
printf("%s %d", trname
, n
);
printf(" at %d", p
->bpline
);
} else if ((s
= p
->bpblock
) != NIL
) {
} else if (p
->bpline
> 0) {
printf(" at %d", p
->bpline
);
printf(" at %d", p
->bpaddr
);
* return rather than break to avoid printing newline.
panic("bptype %d in bplist", p
->bptype
);
* Print the name of a symbol unambigously.