Annotation of 42BSD/ucb/pascal/pdx/breakpoint/setbps.c, revision 1.1.1.1

1.1       root        1: /* Copyright (c) 1982 Regents of the University of California */
                      2: 
                      3: static char sccsid[] = "@(#)setbps.c 1.1 1/18/82";
                      4: 
                      5: /*
                      6:  * set all breakpoints in object code
                      7:  */
                      8: 
                      9: #include "defs.h"
                     10: #include "breakpoint.h"
                     11: #include "process.h"
                     12: #include "machine.h"
                     13: #include "bp.rep"
                     14: 
                     15: setallbps()
                     16: {
                     17:        register BPINFO *p;
                     18: 
                     19:        for (p = bphead; p != NIL; p = p->bpnext) {
                     20:                setbp(p->bpaddr);
                     21:        }
                     22: }
                     23: 
                     24: /*
                     25:  * undo damage done by "setallbps"
                     26:  */
                     27: 
                     28: unsetallbps()
                     29: {
                     30:        register BPINFO *p;
                     31: 
                     32:        for (p = bphead; p != NIL; p = p->bpnext) {
                     33:                unsetbp(p->bpaddr);
                     34:        }
                     35: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.