1*22279Sdist /* 2*22279Sdist * Copyright (c) 1980 Regents of the University of California. 3*22279Sdist * All rights reserved. The Berkeley software License Agreement 4*22279Sdist * specifies the terms and conditions for redistribution. 5*22279Sdist */ 65467Slinton 7*22279Sdist #ifndef lint 8*22279Sdist static char sccsid[] = "@(#)setbps.c 5.1 (Berkeley) 06/05/85"; 9*22279Sdist #endif not lint 105467Slinton /* 115467Slinton * set all breakpoints in object code 125467Slinton */ 135467Slinton 145467Slinton #include "defs.h" 155467Slinton #include "breakpoint.h" 165467Slinton #include "process.h" 175467Slinton #include "machine.h" 185467Slinton #include "bp.rep" 195467Slinton 205467Slinton setallbps() 215467Slinton { 225467Slinton register BPINFO *p; 235467Slinton 245467Slinton for (p = bphead; p != NIL; p = p->bpnext) { 255467Slinton setbp(p->bpaddr); 265467Slinton } 275467Slinton } 285467Slinton 295467Slinton /* 305467Slinton * undo damage done by "setallbps" 315467Slinton */ 325467Slinton 335467Slinton unsetallbps() 345467Slinton { 355467Slinton register BPINFO *p; 365467Slinton 375467Slinton for (p = bphead; p != NIL; p = p->bpnext) { 385467Slinton unsetbp(p->bpaddr); 395467Slinton } 405467Slinton } 41