10 char NOPCS[] = "no process";
12 /* sub process control */
31 /* delete breakpoint */
34 if ((bk=scanbkpt(dot)) == 0)
35 error("no breakpoint set");
44 for (bk=bkpthead; bk; bk=bk->nxtbkpt)
45 if (bk->flag == BKPTCLR)
48 bk = (BKPT *)malloc(sizeof(*bk));
50 error("too many breakpoints");
55 bk->initcnt = bk->count = cntval;
56 bk->flag = modif == 'b' ? BKPTSET : BKPTTMP;
62 *comptr++ = readchar();
63 } while (check-- && lastc!=EOR);
65 if(bk->comm[0] != EOR && cntflg == FALSE)
66 bk->initcnt = bk->count = HUGEINT;
70 error("bkpt command too long");
77 dprint("%d: killed", pid);
78 pcsactive = 1; /* force 'kill' ctl */
105 line = pc2line(rget(cormap, mach->pc));
107 dprint("%s: running\n", symfil);
109 for (loopcnt = 1; n > 0; loopcnt = 1) {
110 r = runpcs(SINGLE, keepnote);
112 if (line != curr) { /* on a new line of c */
119 /* continue with optional note */
128 case 'n': /* deal with notes */
134 memmove(note[n], note[n+1], (nnote-n)*sizeof(note[0]));
139 case 'h': /* halt the current process */
140 if (adrflg && adrval == 0) {
147 dprint("stopped at%16t");
152 case 'x': /* continue executing the current process */
159 error("bad `:' command");
163 dprint("%s: running\n", symfil);
165 r = runpcs(runmode,keepnote);
168 dprint("breakpoint%16t");
170 dprint("stopped at%16t");