sim_deb 4353 src/dps8/dps8_cpu.c if (sim_deb && dptr && (dptr->dctrl & dbits)) sim_deb 4404 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 1931 src/simh/scp.c if (sim_deb && (sim_deb != sim_log) && (sim_deb != stdout)) sim_deb 1932 src/simh/scp.c fprintf (sim_deb, "%s%s\n", sim_prompt, cptr); sim_deb 2593 src/simh/scp.c if (sim_deb) /* flush debug if enabled */ sim_deb 2594 src/simh/scp.c fflush (sim_deb); sim_deb 4044 src/simh/scp.c if (sim_deb && (sim_deb != stdout) && (sim_deb != sim_log)) sim_deb 4045 src/simh/scp.c show_cmd_fi (sim_deb, flag, cptr); sim_deb 5911 src/simh/scp.c if (sim_deb) /* flush debug log */ sim_deb 5948 src/simh/scp.c if (sim_deb && (sim_deb != stdout) && (sim_deb != sim_log))/* debug if enabled */ sim_deb 5949 src/simh/scp.c fprint_stopped (sim_deb, r); sim_deb 8297 src/simh/scp.c if (sim_deb) sim_deb 8298 src/simh/scp.c fclose(sim_deb); sim_deb 9277 src/simh/scp.c if (sim_deb && exp->dptr && (exp->dptr->dctrl & exp->dbit)) { sim_deb 9289 src/simh/scp.c if (sim_deb && exp->dptr && (exp->dptr->dctrl & exp->dbit)) { sim_deb 9303 src/simh/scp.c if (sim_deb && exp->dptr && (exp->dptr->dctrl & exp->dbit)) { sim_deb 9616 src/simh/scp.c if (sim_deb && dptr && (dptr->dctrl & dbits)) { sim_deb 9618 src/simh/scp.c fprintf(sim_deb, "%s", sim_debug_prefix(dbits, dptr)); /* print prefix if required */ sim_deb 9620 src/simh/scp.c fprintf(sim_deb, "%s: ", header); sim_deb 9621 src/simh/scp.c fprint_fields (sim_deb, (t_value)before, (t_value)after, bitdefs); /* print xlation, transition */ sim_deb 9623 src/simh/scp.c fprintf(sim_deb, "\r\n"); sim_deb 9679 src/simh/scp.c if (sim_deb && (sim_deb != stdout) && (sim_deb != sim_log)) sim_deb 9680 src/simh/scp.c fprintf (sim_deb, "%s", buf); sim_deb 9722 src/simh/scp.c if (sim_deb) /* Always put context in debug output */ sim_deb 9723 src/simh/scp.c fprintf (sim_deb, "%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]); sim_deb 9743 src/simh/scp.c if (sim_deb && (((sim_deb != stdout) && (sim_deb != sim_log)) || inhibit_message))/* Always display messages in debug output */ sim_deb 9744 src/simh/scp.c fprintf (sim_deb, "%s", buf); sim_deb 9762 src/simh/scp.c if (sim_deb && dptr && (dbits == 0 || (dptr->dctrl & dbits))) { sim_deb 9800 src/simh/scp.c fprintf (sim_deb, "%.*s\r\n", i-j, &buf[j]); sim_deb 9802 src/simh/scp.c fprintf (sim_deb, "%s%.*s\r\n", debug_prefix, i-j, &buf[j]); sim_deb 9811 src/simh/scp.c fprintf (sim_deb, "%.*s", i-j, &buf[j]); sim_deb 9813 src/simh/scp.c fprintf (sim_deb, "%s%.*s", debug_prefix, i-j, &buf[j]); sim_deb 9828 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 1361 src/simh/sim_console.c r = sim_open_logfile (gbuf, FALSE, &sim_deb, &sim_deb_ref); sim_deb 1372 src/simh/sim_console.c sim_printf ("Debug output to \"%s\"\n", sim_logfile_name (sim_deb, sim_deb_ref)); sim_deb 1380 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 1381 src/simh/sim_console.c show_version (sim_deb, NULL, NULL, 0, NULL); sim_deb 1397 src/simh/sim_console.c if (sim_deb == NULL) /* no debug? */ sim_deb 1400 src/simh/sim_console.c if (sim_deb == sim_log) { /* debug is log */ sim_deb 1401 src/simh/sim_console.c fflush (sim_deb); /* fflush is the best we can do */ sim_deb 1405 src/simh/sim_console.c strcpy (saved_debug_filename, sim_logfile_name (sim_deb, sim_deb_ref)); sim_deb 1423 src/simh/sim_console.c if (sim_deb == NULL) /* no debug? */ sim_deb 1426 src/simh/sim_console.c sim_deb = NULL; sim_deb 1441 src/simh/sim_console.c if (sim_deb) { sim_deb 1443 src/simh/sim_console.c sim_logfile_name (sim_deb, sim_deb_ref)); sim_deb 1640 src/simh/sim_console.c if (sim_deb == NULL) /* any debug? */ sim_deb 1642 src/simh/sim_console.c *pf = sim_deb; sim_deb 665 src/simh/sim_defs.h # define DEBUG_PRS(d) (sim_deb && d.dctrl) sim_deb 666 src/simh/sim_defs.h # define DEBUG_PRD(d) (sim_deb && d->dctrl) sim_deb 667 src/simh/sim_defs.h # define DEBUG_PRI(d,m) (sim_deb && (d.dctrl & (m))) sim_deb 668 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 1237 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)