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:
parent
3fe61c53a5
commit
d615bd0f58
1 changed files with 1 additions and 1 deletions
2
scp.c
2
scp.c
|
@ -5978,7 +5978,7 @@ run_cmd_message (const char *unechoed_cmdline, t_stat r)
|
||||||
#if defined (VMS)
|
#if defined (VMS)
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
#endif
|
#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);
|
sim_printf("%s> %s\n", do_position(), unechoed_cmdline);
|
||||||
fprint_stopped (stdout, r); /* print msg */
|
fprint_stopped (stdout, r); /* print msg */
|
||||||
if (sim_log && (sim_log != stdout)) /* log if enabled */
|
if (sim_log && (sim_log != stdout)) /* log if enabled */
|
||||||
|
|
Loading…
Add table
Reference in a new issue