sim_deb 4512 src/dps8/dps8_cpu.c if (sim_deb && dptr && (dptr->dctrl & dbits)) sim_deb 4573 src/dps8/dps8_cpu.c fprintf (sim_deb, "%lld.%06ld: DBG(%lld) %o: %s %s %.*s\r\n", sim_deb 29 src/dps8/dps8_simh.h sim_deb && \ sim_deb 155 src/dps8/dps8_simh.h extern FILE *sim_deb; sim_deb 367 src/simh/scp.c FILE *sim_deb = NULL; /* debug file */ sim_deb 1932 src/simh/scp.c if (sim_deb && (sim_deb != sim_log) && (sim_deb != stdout)) sim_deb 1933 src/simh/scp.c fprintf (sim_deb, "%s%s\n", sim_prompt, cptr); sim_deb 2594 src/simh/scp.c if (sim_deb) /* flush debug if enabled */ sim_deb 2595 src/simh/scp.c fflush (sim_deb); sim_deb 4045 src/simh/scp.c if (sim_deb && (sim_deb != stdout) && (sim_deb != sim_log)) sim_deb 4046 src/simh/scp.c show_cmd_fi (sim_deb, flag, cptr); sim_deb 6124 src/simh/scp.c if (sim_deb) /* flush debug log */ sim_deb 6161 src/simh/scp.c if (sim_deb && (sim_deb != stdout) && (sim_deb != sim_log))/* debug if enabled */ sim_deb 6162 src/simh/scp.c fprint_stopped (sim_deb, r); sim_deb 8510 src/simh/scp.c if (sim_deb) sim_deb 8511 src/simh/scp.c fclose(sim_deb); sim_deb 9490 src/simh/scp.c if (sim_deb && exp->dptr && (exp->dptr->dctrl & exp->dbit)) { sim_deb 9502 src/simh/scp.c if (sim_deb && exp->dptr && (exp->dptr->dctrl & exp->dbit)) { sim_deb 9516 src/simh/scp.c if (sim_deb && exp->dptr && (exp->dptr->dctrl & exp->dbit)) { sim_deb 9850 src/simh/scp.c if (sim_deb && dptr && (dptr->dctrl & dbits)) { sim_deb 9852 src/simh/scp.c fprintf(sim_deb, "%s", sim_debug_prefix(dbits, dptr)); /* print prefix if required */ sim_deb 9854 src/simh/scp.c fprintf(sim_deb, "%s: ", header); sim_deb 9855 src/simh/scp.c fprint_fields (sim_deb, (t_value)before, (t_value)after, bitdefs); /* print xlation, transition */ sim_deb 9857 src/simh/scp.c fprintf(sim_deb, "\r\n"); sim_deb 9913 src/simh/scp.c if (sim_deb && (sim_deb != stdout) && (sim_deb != sim_log)) sim_deb 9914 src/simh/scp.c fprintf (sim_deb, "%s", buf); sim_deb 9956 src/simh/scp.c if (sim_deb) /* Always put context in debug output */ sim_deb 9957 src/simh/scp.c fprintf (sim_deb, "%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]); sim_deb 9977 src/simh/scp.c if (sim_deb && (((sim_deb != stdout) && (sim_deb != sim_log)) || inhibit_message))/* Always display messages in debug output */ sim_deb 9978 src/simh/scp.c fprintf (sim_deb, "%s", buf); sim_deb 9996 src/simh/scp.c if (sim_deb && dptr && (dbits == 0 || (dptr->dctrl & dbits))) { sim_deb 10034 src/simh/scp.c fprintf (sim_deb, "%.*s\r\n", i-j, &buf[j]); sim_deb 10036 src/simh/scp.c fprintf (sim_deb, "%s%.*s\r\n", debug_prefix, i-j, &buf[j]); sim_deb 10045 src/simh/scp.c fprintf (sim_deb, "%.*s", i-j, &buf[j]); sim_deb 10047 src/simh/scp.c fprintf (sim_deb, "%s%.*s", debug_prefix, i-j, &buf[j]); sim_deb 10062 src/simh/scp.c if (sim_deb && (dptr->dctrl & reason)) { sim_deb 206 src/simh/scp.h # define sim_debug(dbits, dptr, ...) do { if ((sim_deb != NULL) && ((dptr != NULL) && ((dptr)->dctrl & dbits))) _sim_debug (dbits, dptr, __VA_ARGS__);} while (0) sim_deb 236 src/simh/scp.h extern FILE *sim_deb; /* debug file */ sim_deb 1372 src/simh/sim_console.c r = sim_open_logfile (gbuf, FALSE, &sim_deb, &sim_deb_ref); sim_deb 1393 src/simh/sim_console.c sim_printf ("Debug output to \"%s\"\n", sim_logfile_name (sim_deb, sim_deb_ref)); sim_deb 1401 src/simh/sim_console.c fprintf (sim_deb, "Debug output to \"%s\" at %s", sim_logfile_name (sim_deb, sim_deb_ref), ctime(&now)); sim_deb 1402 src/simh/sim_console.c show_version (sim_deb, NULL, NULL, 0, NULL); sim_deb 1418 src/simh/sim_console.c if (sim_deb == NULL) /* no debug? */ sim_deb 1421 src/simh/sim_console.c if (sim_deb == sim_log) { /* debug is log */ sim_deb 1422 src/simh/sim_console.c fflush (sim_deb); /* fflush is the best we can do */ sim_deb 1426 src/simh/sim_console.c strcpy (saved_debug_filename, sim_logfile_name (sim_deb, sim_deb_ref)); sim_deb 1444 src/simh/sim_console.c if (sim_deb == NULL) /* no debug? */ sim_deb 1447 src/simh/sim_console.c sim_deb = NULL; sim_deb 1462 src/simh/sim_console.c if (sim_deb) { sim_deb 1464 src/simh/sim_console.c sim_logfile_name (sim_deb, sim_deb_ref)); sim_deb 1661 src/simh/sim_console.c if (sim_deb == NULL) /* any debug? */ sim_deb 1663 src/simh/sim_console.c *pf = sim_deb; sim_deb 667 src/simh/sim_defs.h # define DEBUG_PRS(d) (sim_deb && d.dctrl) sim_deb 668 src/simh/sim_defs.h # define DEBUG_PRD(d) (sim_deb && d->dctrl) sim_deb 669 src/simh/sim_defs.h # define DEBUG_PRI(d,m) (sim_deb && (d.dctrl & (m))) sim_deb 670 src/simh/sim_defs.h # define DEBUG_PRJ(d,m) (sim_deb && ((d)->dctrl & (m))) sim_deb 386 src/simh/sim_disk.c FILE *save_sim_deb = sim_deb; sim_deb 390 src/simh/sim_disk.c sim_deb = save_sim_deb ? save_sim_deb : stdout; sim_deb 393 src/simh/sim_disk.c sim_deb = save_sim_deb; sim_deb 943 src/simh/sim_disk.c FILE *save_sim_deb = sim_deb; sim_deb 947 src/simh/sim_disk.c sim_deb = stdout; sim_deb 950 src/simh/sim_disk.c sim_deb = save_sim_deb; sim_deb 1140 src/simh/sim_disk.c if (sim_deb && (ctx->dptr->dctrl & reason)) { sim_deb 306 src/simh/sim_tape.c if (sim_deb && (ctx->dptr->dctrl & reason)) sim_deb 1919 src/simh/sim_tape.c if (sim_deb && (dptr->dctrl & MTSE_DBG_STR)) { sim_deb 1331 src/simh/sim_tmxr.c if ((lp->modembits != before_modem_bits) && (sim_deb && lp->mp && dptr)) { sim_deb 276 src/simh/sim_tmxr.h # define tmxr_debug(dbits, lp, msg, buf, bufsize) do {if (sim_deb && (lp)->mp && (lp)->mp->dptr && ((dbits) & (lp)->mp->dptr->dctrl)) _tmxr_debug (dbits, lp, msg, buf, bufsize); } while (0) sim_deb 277 src/simh/sim_tmxr.h # define tmxr_debug_msg(dbits, lp, msg) do {if (sim_deb && (lp)->mp && (lp)->mp->dptr && ((dbits) & (lp)->mp->dptr->dctrl)) sim_debug (dbits, (lp)->mp->dptr, "%s", msg); } while (0) sim_deb 278 src/simh/sim_tmxr.h # define tmxr_debug_return(lp, val) do {if (sim_deb && (val) && (lp)->mp && (lp)->mp->dptr && (TMXR_DBG_RET & (lp)->mp->dptr->dctrl)) { if ((lp)->rxbps) sim_debug (TMXR_DBG_RET, (lp)->mp->dptr, "Ln%d: 0x%x - Next after: %.0f\n", (int)((lp)-(lp)->mp->ldsc), val, (lp)->rxnexttime); else sim_debug (TMXR_DBG_RET, (lp)->mp->dptr, "Ln%d: 0x%x\n", (int)((lp)-(lp)->mp->ldsc), val); } } while (0) sim_deb 279 src/simh/sim_tmxr.h # define tmxr_debug_trace(mp, msg) do {if (sim_deb && (mp)->dptr && (TMXR_DBG_TRC & (mp)->dptr->dctrl)) sim_debug (TMXR_DBG_TRC, mp->dptr, "%s\n", (msg)); } while (0) sim_deb 280 src/simh/sim_tmxr.h # define tmxr_debug_trace_line(lp, msg) do {if (sim_deb && (lp)->mp && (lp)->mp->dptr && (TMXR_DBG_TRC & (lp)->mp->dptr->dctrl)) sim_debug (TMXR_DBG_TRC, (lp)->mp->dptr, "Ln%d:%s\n", (int)((lp)-(lp)->mp->ldsc), (msg)); } while (0) sim_deb 281 src/simh/sim_tmxr.h # define tmxr_debug_connect(mp, msg) do {if (sim_deb && (mp)->dptr && (TMXR_DBG_CON & (mp)->dptr->dctrl)) sim_debug (TMXR_DBG_CON, mp->dptr, "%s\n", (msg)); } while (0) sim_deb 282 src/simh/sim_tmxr.h # define tmxr_debug_connect_line(lp, msg) do {if (sim_deb && (lp)->mp && (lp)->mp->dptr && (TMXR_DBG_CON & (lp)->mp->dptr->dctrl)) sim_debug (TMXR_DBG_CON, (lp)->mp->dptr, "Ln%d:%s\n", (int)((lp)-(lp)->mp->ldsc), (msg)); } while (0)