1 /*-
2  * Copyright (c) 1980, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)setbps.c	8.1 (Berkeley) 06/06/93";
10 #endif /* not lint */
11 
12 /*
13  * set all breakpoints in object code
14  */
15 
16 #include "defs.h"
17 #include "breakpoint.h"
18 #include "process.h"
19 #include "machine.h"
20 #include "bp.rep"
21 
22 setallbps()
23 {
24 	register BPINFO *p;
25 
26 	for (p = bphead; p != NIL; p = p->bpnext) {
27 		setbp(p->bpaddr);
28 	}
29 }
30 
31 /*
32  * undo damage done by "setallbps"
33  */
34 
35 unsetallbps()
36 {
37 	register BPINFO *p;
38 
39 	for (p = bphead; p != NIL; p = p->bpnext) {
40 		unsetbp(p->bpaddr);
41 	}
42 }
43