Annotation of researchv10no/cmd/adb/seq/mchrun.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * machine-dependent process control
        !             3:  */
        !             4: 
        !             5: #include "defs.h"
        !             6: #include "space.h"
        !             7: #include "bkpt.h"
        !             8: 
        !             9: /*
        !            10:  * install (f != 0) or remove (f == 0) a breakpoint
        !            11:  */
        !            12: 
        !            13: #define        BPT     0xf2    /* NS32000 */
        !            14: 
        !            15: extern ADDR txtsize;
        !            16: 
        !            17: bkput(bk, f)
        !            18: register BKPT *bk;
        !            19: {
        !            20:        register int sp;
        !            21: 
        !            22:        if (bk->loc < txtsize)
        !            23:                sp = CORF | INSTSP;
        !            24:        else
        !            25:                sp = CORF | DATASP;
        !            26:        if (f == 0)
        !            27:                cput(bk->loc, sp, wtoc(bk->ins));
        !            28:        else {
        !            29:                bk->ins = ctow(cget(bk->loc, sp));
        !            30:                cput(bk->loc, sp, wtoc(BPT));
        !            31:                if (errflg) {
        !            32:                        printf("cannot set breakpoint: ");
        !            33:                        /* stuff */
        !            34:                        prints(errflg);
        !            35:                }
        !            36:        }
        !            37: }

unix.superglobalmegacorp.com

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