mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
SCP: Extended debugging to allow for unit specific debug for disk and tape
This commit is contained in:
@@ -2329,17 +2329,33 @@ if (sim_deb) {
|
||||
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++) {
|
||||
t_bool unit_debug = FALSE;
|
||||
uint32 unit;
|
||||
|
||||
for (unit = 0; unit < dptr->numunits; unit++)
|
||||
if (dptr->units[unit].dctrl) {
|
||||
unit_debug = TRUE;
|
||||
break;
|
||||
}
|
||||
if (!(dptr->flags & DEV_DIS) &&
|
||||
((dptr->flags & DEV_DEBUG) || (dptr->debflags)) &&
|
||||
(dptr->dctrl)) {
|
||||
((dptr->dctrl) || unit_debug)) {
|
||||
fprintf (st, "Device: %-6s ", dptr->name);
|
||||
show_dev_debug (st, dptr, NULL, 0, NULL);
|
||||
}
|
||||
}
|
||||
for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) {
|
||||
t_bool unit_debug = FALSE;
|
||||
uint32 unit;
|
||||
|
||||
for (unit = 0; unit < dptr->numunits; unit++)
|
||||
if (dptr->units[unit].dctrl) {
|
||||
unit_debug = TRUE;
|
||||
break;
|
||||
}
|
||||
if (!(dptr->flags & DEV_DIS) &&
|
||||
((dptr->flags & DEV_DEBUG) || (dptr->debflags)) &&
|
||||
(dptr->dctrl)) {
|
||||
((dptr->dctrl) || unit_debug)) {
|
||||
fprintf (st, "Device: %-6s ", dptr->name);
|
||||
show_dev_debug (st, dptr, NULL, 0, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user