sim_do_depth 377 src/simh/scp.c static int32 sim_do_depth = 0; sim_do_depth 2638 src/simh/scp.c snprintf (cbuf, sizeof (cbuf), "%s%s%s-%d", sim_do_filename[sim_do_depth], sim_do_depth 2639 src/simh/scp.c sim_do_label[sim_do_depth] ? "::" : "", sim_do_depth 2640 src/simh/scp.c sim_do_label[sim_do_depth] ? sim_do_label[sim_do_depth] : "", sim_do_depth 2641 src/simh/scp.c sim_goto_line[sim_do_depth]); sim_do_depth 2700 src/simh/scp.c ++sim_do_depth; sim_do_depth 2702 src/simh/scp.c sim_on_check[sim_do_depth] = sim_on_check[sim_do_depth-1]; /* inherit On mode */ sim_do_depth 2704 src/simh/scp.c if (sim_on_actions[sim_do_depth-1][i]) { sim_do_depth 2705 src/simh/scp.c sim_on_actions[sim_do_depth][i] = (char *)malloc(1+strlen(sim_on_actions[sim_do_depth-1][i])); sim_do_depth 2706 src/simh/scp.c if (NULL == sim_on_actions[sim_do_depth][i]) { sim_do_depth 2708 src/simh/scp.c FREE(sim_on_actions[sim_do_depth][i]); sim_do_depth 2709 src/simh/scp.c sim_on_actions[sim_do_depth][i] = NULL; sim_do_depth 2711 src/simh/scp.c sim_on_check[sim_do_depth] = 0; sim_do_depth 2713 src/simh/scp.c --sim_do_depth; /* unwind nesting */ sim_do_depth 2717 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][i], sim_on_actions[sim_do_depth-1][i]); sim_do_depth 2723 src/simh/scp.c strcpy( sim_do_filename[sim_do_depth], do_arg[0]); /* stash away do file name for possible use by 'call' command */ sim_do_depth 2724 src/simh/scp.c sim_do_label[sim_do_depth] = label; /* stash away do label for possible use in messages */ sim_do_depth 2725 src/simh/scp.c sim_goto_line[sim_do_depth] = 0; sim_do_depth 2741 src/simh/scp.c sim_do_ocptr[sim_do_depth] = cptr = sim_brk_getact (cbuf, sizeof(cbuf)); /* get bkpt action */ sim_do_depth 2742 src/simh/scp.c if (!sim_do_ocptr[sim_do_depth]) { /* no pending action? */ sim_do_depth 2743 src/simh/scp.c sim_do_ocptr[sim_do_depth] = cptr = read_line (cbuf, sizeof(cbuf), fpin);/* get cmd line */ sim_do_depth 2744 src/simh/scp.c sim_goto_line[sim_do_depth] += 1; sim_do_depth 2765 src/simh/scp.c if (sim_do_depth >= MAX_DO_NEST_LVL) /* nest too deep? */ sim_do_depth 2768 src/simh/scp.c stat = do_cmd (sim_do_depth+1, cptr); /* exec DO cmd */ sim_do_depth 2787 src/simh/scp.c staying = (sim_on_check[sim_do_depth] && /* if trap action defined */ sim_do_depth 2788 src/simh/scp.c sim_on_actions[sim_do_depth][stat]); /* use it, otherwise exit */ sim_do_depth 2804 src/simh/scp.c sim_printf("%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]); sim_do_depth 2809 src/simh/scp.c cmdp->message ((!echo && !sim_quiet) ? sim_do_ocptr[sim_do_depth] : NULL, stat); sim_do_depth 2817 src/simh/scp.c (sim_on_check[sim_do_depth]) && sim_do_depth 2820 src/simh/scp.c if ((stat <= SCPE_MAX_ERR) && sim_on_actions[sim_do_depth][stat]) sim_do_depth 2821 src/simh/scp.c sim_brk_setact (sim_on_actions[sim_do_depth][stat]); sim_do_depth 2823 src/simh/scp.c sim_brk_setact (sim_on_actions[sim_do_depth][0]); sim_do_depth 2840 src/simh/scp.c FREE (sim_on_actions[sim_do_depth][i]); sim_do_depth 2841 src/simh/scp.c sim_on_actions[sim_do_depth][i] = NULL; sim_do_depth 2843 src/simh/scp.c sim_on_check[sim_do_depth] = 0; /* clear on mode */ sim_do_depth 2846 src/simh/scp.c --sim_do_depth; /* unwind nesting */ sim_do_depth 3563 src/simh/scp.c int32 saved_goto_line = sim_goto_line[sim_do_depth]; sim_do_depth 3570 src/simh/scp.c sim_goto_line[sim_do_depth] = 0; /* reset line number */ sim_do_depth 3575 src/simh/scp.c sim_goto_line[sim_do_depth] += 1; /* record line number */ sim_do_depth 3591 src/simh/scp.c sim_goto_line[sim_do_depth] = saved_goto_line; /* restore start line number */ sim_do_depth 3635 src/simh/scp.c snprintf(cbuf, sizeof (cbuf), "%s %s", sim_do_filename[sim_do_depth], cptr); sim_do_depth 3655 src/simh/scp.c FREE(sim_on_actions[sim_do_depth][cond]); /* Clear existing condition */ sim_do_depth 3656 src/simh/scp.c sim_on_actions[sim_do_depth][cond] = NULL; } sim_do_depth 3658 src/simh/scp.c sim_on_actions[sim_do_depth][cond] = sim_do_depth 3659 src/simh/scp.c (char *)realloc(sim_on_actions[sim_do_depth][cond], 1+strlen(cptr)); sim_do_depth 3660 src/simh/scp.c if (!sim_on_actions[sim_do_depth][cond]) sim_do_depth 3672 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][cond], cptr); sim_do_depth 3706 src/simh/scp.c sim_on_check[sim_do_depth] = flag; sim_do_depth 3707 src/simh/scp.c if ((sim_do_depth != 0) && sim_do_depth 3708 src/simh/scp.c (NULL == sim_on_actions[sim_do_depth][0])) { /* default handler set? */ sim_do_depth 3709 src/simh/scp.c sim_on_actions[sim_do_depth][0] = /* No, so make "RETURN" */ sim_do_depth 3711 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][0], "RETURN"); sim_do_depth 3713 src/simh/scp.c if ((sim_do_depth != 0) && sim_do_depth 3714 src/simh/scp.c (NULL == sim_on_actions[sim_do_depth][SCPE_AFAIL])) {/* handler set for AFAIL? */ sim_do_depth 3715 src/simh/scp.c sim_on_actions[sim_do_depth][SCPE_AFAIL] = /* No, so make "RETURN" */ sim_do_depth 3717 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][SCPE_AFAIL], "RETURN"); sim_do_depth 5311 src/simh/scp.c for (lvl=sim_do_depth; lvl >= 0; --lvl) { sim_do_depth 9012 src/simh/scp.c if (sim_brk_act[sim_do_depth] == NULL) /* any action? */ sim_do_depth 9014 src/simh/scp.c while (sim_isspace (*sim_brk_act[sim_do_depth])) /* skip spaces */ sim_do_depth 9015 src/simh/scp.c sim_brk_act[sim_do_depth]++; sim_do_depth 9016 src/simh/scp.c if (*sim_brk_act[sim_do_depth] == 0) { /* now empty? */ sim_do_depth 9019 src/simh/scp.c if ((ep = strchr (sim_brk_act[sim_do_depth], ';'))) { /* cmd delimiter? */ sim_do_depth 9020 src/simh/scp.c lnt = ep - sim_brk_act[sim_do_depth]; /* cmd length */ sim_do_depth 9021 src/simh/scp.c memcpy (buf, sim_brk_act[sim_do_depth], lnt + 1); /* copy with ; */ sim_do_depth 9023 src/simh/scp.c sim_brk_act[sim_do_depth] += lnt + 1; /* adv ptr */ sim_do_depth 9026 src/simh/scp.c strncpy (buf, sim_brk_act[sim_do_depth], size); /* copy action */ sim_do_depth 9036 src/simh/scp.c FREE (sim_brk_act_buf[sim_do_depth]); sim_do_depth 9037 src/simh/scp.c return sim_brk_act[sim_do_depth] = sim_brk_act_buf[sim_do_depth] = NULL; sim_do_depth 9045 src/simh/scp.c sim_brk_act_buf[sim_do_depth] = (char *)realloc (sim_brk_act_buf[sim_do_depth], strlen (action) + 1); sim_do_depth 9046 src/simh/scp.c if (!sim_brk_act_buf[sim_do_depth]) sim_do_depth 9058 src/simh/scp.c strcpy (sim_brk_act_buf[sim_do_depth], action); sim_do_depth 9059 src/simh/scp.c sim_brk_act[sim_do_depth] = sim_brk_act_buf[sim_do_depth]; sim_do_depth 9952 src/simh/scp.c if (sim_do_ocptr[sim_do_depth]) { sim_do_depth 9954 src/simh/scp.c sim_printf("%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]); sim_do_depth 9957 src/simh/scp.c fprintf (sim_deb, "%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]);