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.
This commit is contained in:
Mark Pizzolato 2014-12-31 15:04:52 -08:00
parent 6ec6b6ab1f
commit 99a7e65876

2
scp.c
View file

@ -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 */