SCP: Added display of all enabled devices which have debugging enabled to the SHOW DEBUG command output.

This commit is contained in:
Mark Pizzolato 2013-09-15 17:18:14 -07:00
parent c9844951f7
commit 7b4d2073fe

View file

@ -1111,6 +1111,8 @@ return SCPE_OK;
t_stat sim_show_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr)
{
int32 i;
if (cptr && (*cptr != 0))
return SCPE_2MARG;
if (sim_deb) {
@ -1122,6 +1124,14 @@ if (sim_deb) {
fprintf (st, " Debug messages display time of day as hh:mm:ss.msec%s\n", sim_deb_switches & SWMASK ('R') ? " relative to the start of debugging" : "");
if (sim_deb_switches & SWMASK ('A'))
fprintf (st, " Debug messages display time of day as seconds.msec%s\n", sim_deb_switches & SWMASK ('R') ? " relative to the start of debugging" : "");
for (i = 0; (dptr = sim_devices[i]) != NULL; i++) {
if (!(dptr->flags & DEV_DIS) &&
(dptr->flags & DEV_DEBUG) &&
(dptr->dctrl)) {
fprintf (st, "Device: %-6s ", dptr->name);
show_dev_debug (st, dptr, NULL, 0, NULL);
}
}
}
else fprintf (st, "Debug output disabled\n");
return SCPE_OK;