148103Sbostic /*-
2*62122Sbostic  * Copyright (c) 1980, 1993
3*62122Sbostic  *	The Regents of the University of California.  All rights reserved.
448103Sbostic  *
548103Sbostic  * %sccs.include.redist.c%
622279Sdist  */
75467Slinton 
822279Sdist #ifndef lint
9*62122Sbostic static char sccsid[] = "@(#)setbps.c	8.1 (Berkeley) 06/06/93";
1048103Sbostic #endif /* not lint */
1148103Sbostic 
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 
setallbps()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 
unsetallbps()355467Slinton unsetallbps()
365467Slinton {
375467Slinton 	register BPINFO *p;
385467Slinton 
395467Slinton 	for (p = bphead; p != NIL; p = p->bpnext) {
405467Slinton 		unsetbp(p->bpaddr);
415467Slinton 	}
425467Slinton }
43