From 99a7e65876332fa09c56f8b1a0f2668d3640ecf8 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 31 Dec 2014 15:04:52 -0800 Subject: [PATCH] SCP: Only report DO file context when run_cmd completes if the completion status is not a simulator specific error code and not due to a STEP, EXPECT or STOP completion. The commands which operate through run_cmd (GO, STEP, CONTINUE, BOOT, RUN) will all exit with a status which is NOT SCPE_OK. Most of the exit status values will be 100% normal and not indicative of a true error, so producing error message context is not necessary or desired. --- scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp.c b/scp.c index 2bb3a500..4e0ae424 100644 --- a/scp.c +++ b/scp.c @@ -5978,7 +5978,7 @@ run_cmd_message (const char *unechoed_cmdline, t_stat r) #if defined (VMS) printf ("\n"); #endif -if (unechoed_cmdline) +if (unechoed_cmdline && (r >= SCPE_BASE) && (r != SCPE_STEP) && (r != SCPE_STOP) && (r != SCPE_EXPECT)) sim_printf("%s> %s\n", do_position(), unechoed_cmdline); fprint_stopped (stdout, r); /* print msg */ if (sim_log && (sim_log != stdout)) /* log if enabled */