/* Copyright (c) 1982 Regents of the University of California */
static char sccsid
[] = "@(#)bp.c 1.1 1/18/82";
* Direct management of bpinfo structures.
* Add a breakpoint to the list, return a pointer to it.
BPINFO
*newbp(addr
, type
, block
, cond
, node
, line
)
printf("new bp (%d) at %d, type %d\n", p
->bpid
, p
->bpaddr
, p
->bptype
);
* Add a breakpoint, but don't return anything.
* Just for folks outside of "breakpoint" who don't know that
addbp(addr
, type
, block
, cond
, node
, line
)
p
= newbp(addr
, type
, block
, cond
, node
, line
);
* Print out a cryptic error message if it can't be found.
register BPINFO
*p
, *last
;
for (p
= bphead
; p
!= NIL
; p
= p
->bpnext
) {
last
->bpnext
= p
->bpnext
;
* Free all storage in the breakpoint table.
register BPINFO
*p
, *next
;
for (p
= bphead
; p
!= NIL
; p
= next
) {