sim_do_depth 448 src/simh/scp.c static int32 sim_do_depth = 0; sim_do_depth 2839 src/simh/scp.c (void)snprintf (cbuf, sizeof (cbuf), "%s%s%s-%d", sim_do_filename[sim_do_depth], sim_do_depth 2840 src/simh/scp.c sim_do_label[sim_do_depth] ? "::" : "", sim_do_depth 2841 src/simh/scp.c sim_do_label[sim_do_depth] ? sim_do_label[sim_do_depth] : "", sim_do_depth 2842 src/simh/scp.c sim_goto_line[sim_do_depth]); sim_do_depth 2901 src/simh/scp.c ++sim_do_depth; sim_do_depth 2903 src/simh/scp.c sim_on_check[sim_do_depth] = sim_on_check[sim_do_depth-1]; /* inherit On mode */ sim_do_depth 2905 src/simh/scp.c if (sim_on_actions[sim_do_depth-1][i]) { sim_do_depth 2906 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 2907 src/simh/scp.c if (NULL == sim_on_actions[sim_do_depth][i]) { sim_do_depth 2909 src/simh/scp.c FREE(sim_on_actions[sim_do_depth][i]); sim_do_depth 2910 src/simh/scp.c sim_on_actions[sim_do_depth][i] = NULL; sim_do_depth 2912 src/simh/scp.c sim_on_check[sim_do_depth] = 0; sim_do_depth 2914 src/simh/scp.c --sim_do_depth; /* unwind nesting */ sim_do_depth 2918 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][i], sim_on_actions[sim_do_depth-1][i]); sim_do_depth 2924 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 2925 src/simh/scp.c sim_do_label[sim_do_depth] = label; /* stash away do label for possible use in messages */ sim_do_depth 2926 src/simh/scp.c sim_goto_line[sim_do_depth] = 0; sim_do_depth 2942 src/simh/scp.c sim_do_ocptr[sim_do_depth] = cptr = sim_brk_getact (cbuf, sizeof(cbuf)); /* get bkpt action */ sim_do_depth 2943 src/simh/scp.c if (!sim_do_ocptr[sim_do_depth]) { /* no pending action? */ sim_do_depth 2944 src/simh/scp.c sim_do_ocptr[sim_do_depth] = cptr = read_line (cbuf, sizeof(cbuf), fpin);/* get cmd line */ sim_do_depth 2945 src/simh/scp.c sim_goto_line[sim_do_depth] += 1; sim_do_depth 2966 src/simh/scp.c if (sim_do_depth >= MAX_DO_NEST_LVL) /* nest too deep? */ sim_do_depth 2969 src/simh/scp.c stat = do_cmd (sim_do_depth+1, cptr); /* exec DO cmd */ sim_do_depth 2988 src/simh/scp.c staying = (sim_on_check[sim_do_depth] && /* if trap action defined */ sim_do_depth 2989 src/simh/scp.c sim_on_actions[sim_do_depth][stat]); /* use it, otherwise exit */ sim_do_depth 3005 src/simh/scp.c sim_printf("%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]); sim_do_depth 3010 src/simh/scp.c cmdp->message ((!echo && !sim_quiet) ? sim_do_ocptr[sim_do_depth] : NULL, stat); sim_do_depth 3018 src/simh/scp.c (sim_on_check[sim_do_depth]) && sim_do_depth 3021 src/simh/scp.c if ((stat <= SCPE_MAX_ERR) && sim_on_actions[sim_do_depth][stat]) sim_do_depth 3022 src/simh/scp.c sim_brk_setact (sim_on_actions[sim_do_depth][stat]); sim_do_depth 3024 src/simh/scp.c sim_brk_setact (sim_on_actions[sim_do_depth][0]); sim_do_depth 3041 src/simh/scp.c FREE (sim_on_actions[sim_do_depth][i]); sim_do_depth 3042 src/simh/scp.c sim_on_actions[sim_do_depth][i] = NULL; sim_do_depth 3044 src/simh/scp.c sim_on_check[sim_do_depth] = 0; /* clear on mode */ sim_do_depth 3047 src/simh/scp.c --sim_do_depth; /* unwind nesting */ sim_do_depth 3800 src/simh/scp.c int32 saved_goto_line = sim_goto_line[sim_do_depth]; sim_do_depth 3807 src/simh/scp.c sim_goto_line[sim_do_depth] = 0; /* reset line number */ sim_do_depth 3812 src/simh/scp.c sim_goto_line[sim_do_depth] += 1; /* record line number */ sim_do_depth 3828 src/simh/scp.c sim_goto_line[sim_do_depth] = saved_goto_line; /* restore start line number */ sim_do_depth 3872 src/simh/scp.c (void)snprintf(cbuf, sizeof (cbuf), "%s %s", sim_do_filename[sim_do_depth], cptr); sim_do_depth 3892 src/simh/scp.c FREE(sim_on_actions[sim_do_depth][cond]); /* Clear existing condition */ sim_do_depth 3893 src/simh/scp.c sim_on_actions[sim_do_depth][cond] = NULL; } sim_do_depth 3895 src/simh/scp.c sim_on_actions[sim_do_depth][cond] = sim_do_depth 3896 src/simh/scp.c (char *)realloc(sim_on_actions[sim_do_depth][cond], 1+strlen(cptr)); sim_do_depth 3897 src/simh/scp.c if (!sim_on_actions[sim_do_depth][cond]) sim_do_depth 3909 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][cond], cptr); sim_do_depth 3943 src/simh/scp.c sim_on_check[sim_do_depth] = flag; sim_do_depth 3944 src/simh/scp.c if ((sim_do_depth != 0) && sim_do_depth 3945 src/simh/scp.c (NULL == sim_on_actions[sim_do_depth][0])) { /* default handler set? */ sim_do_depth 3946 src/simh/scp.c sim_on_actions[sim_do_depth][0] = /* No, so make "RETURN" */ sim_do_depth 3948 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][0], "RETURN"); sim_do_depth 3950 src/simh/scp.c if ((sim_do_depth != 0) && sim_do_depth 3951 src/simh/scp.c (NULL == sim_on_actions[sim_do_depth][SCPE_AFAIL])) {/* handler set for AFAIL? */ sim_do_depth 3952 src/simh/scp.c sim_on_actions[sim_do_depth][SCPE_AFAIL] = /* No, so make "RETURN" */ sim_do_depth 3954 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][SCPE_AFAIL], "RETURN"); sim_do_depth 5656 src/simh/scp.c for (lvl=sim_do_depth; lvl >= 0; --lvl) { sim_do_depth 9385 src/simh/scp.c if (sim_brk_act[sim_do_depth] == NULL) /* any action? */ sim_do_depth 9387 src/simh/scp.c while (sim_isspace (*sim_brk_act[sim_do_depth])) /* skip spaces */ sim_do_depth 9388 src/simh/scp.c sim_brk_act[sim_do_depth]++; sim_do_depth 9389 src/simh/scp.c if (*sim_brk_act[sim_do_depth] == 0) { /* now empty? */ sim_do_depth 9392 src/simh/scp.c if ((ep = strchr (sim_brk_act[sim_do_depth], ';'))) { /* cmd delimiter? */ sim_do_depth 9393 src/simh/scp.c lnt = ep - sim_brk_act[sim_do_depth]; /* cmd length */ sim_do_depth 9394 src/simh/scp.c memcpy (buf, sim_brk_act[sim_do_depth], lnt + 1); /* copy with ; */ sim_do_depth 9396 src/simh/scp.c sim_brk_act[sim_do_depth] += lnt + 1; /* adv ptr */ sim_do_depth 9399 src/simh/scp.c strncpy (buf, sim_brk_act[sim_do_depth], size); /* copy action */ sim_do_depth 9409 src/simh/scp.c FREE (sim_brk_act_buf[sim_do_depth]); sim_do_depth 9410 src/simh/scp.c return sim_brk_act[sim_do_depth] = sim_brk_act_buf[sim_do_depth] = NULL; sim_do_depth 9418 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 9419 src/simh/scp.c if (!sim_brk_act_buf[sim_do_depth]) sim_do_depth 9431 src/simh/scp.c strcpy (sim_brk_act_buf[sim_do_depth], action); sim_do_depth 9432 src/simh/scp.c sim_brk_act[sim_do_depth] = sim_brk_act_buf[sim_do_depth]; sim_do_depth 10333 src/simh/scp.c if (sim_do_ocptr[sim_do_depth]) { sim_do_depth 10335 src/simh/scp.c sim_printf("%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]); sim_do_depth 10338 src/simh/scp.c (void)fprintf (sim_deb, "%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]);