1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 11:46:37 +00:00

SCP: Add internal device debug state to output of SHOW DEBUG command

This commit is contained in:
Mark Pizzolato
2015-12-19 11:26:27 -08:00
parent 094cbf8295
commit bbd5f9bf95
2 changed files with 10 additions and 0 deletions

View File

@@ -1510,6 +1510,14 @@ if (sim_deb) {
show_dev_debug (st, dptr, NULL, 0, NULL);
}
}
for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++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;