1*48103Sbostic /*-
2*48103Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*48103Sbostic  * All rights reserved.
4*48103Sbostic  *
5*48103Sbostic  * %sccs.include.redist.c%
622279Sdist  */
75467Slinton 
822279Sdist #ifndef lint
9*48103Sbostic static char sccsid[] = "@(#)setbps.c	5.2 (Berkeley) 04/16/91";
10*48103Sbostic #endif /* not lint */
11*48103Sbostic 
125467Slinton /*
135467Slinton  * set all breakpoints in object code
145467Slinton  */
155467Slinton 
165467Slinton #include "defs.h"
175467Slinton #include "breakpoint.h"
185467Slinton #include "process.h"
195467Slinton #include "machine.h"
205467Slinton #include "bp.rep"
215467Slinton 
225467Slinton setallbps()
235467Slinton {
245467Slinton 	register BPINFO *p;
255467Slinton 
265467Slinton 	for (p = bphead; p != NIL; p = p->bpnext) {
275467Slinton 		setbp(p->bpaddr);
285467Slinton 	}
295467Slinton }
305467Slinton 
315467Slinton /*
325467Slinton  * undo damage done by "setallbps"
335467Slinton  */
345467Slinton 
355467Slinton unsetallbps()
365467Slinton {
375467Slinton 	register BPINFO *p;
385467Slinton 
395467Slinton 	for (p = bphead; p != NIL; p = p->bpnext) {
405467Slinton 		unsetbp(p->bpaddr);
415467Slinton 	}
425467Slinton }
43