mirror of
https://github.com/simh/simh.git
synced 2026-01-13 23:35:57 +00:00
SCP: Add internal device debug state to output of SHOW DEBUG command
This commit is contained in:
parent
094cbf8295
commit
bbd5f9bf95
2
scp.h
2
scp.h
@ -243,6 +243,8 @@ extern FILE *sim_deb; /* debug file */
|
||||
extern FILEREF *sim_deb_ref; /* debug file file reference */
|
||||
extern int32 sim_deb_switches; /* debug display flags */
|
||||
extern struct timespec sim_deb_basetime; /* debug base time for relative time output */
|
||||
extern DEVICE **sim_internal_devices;
|
||||
extern uint32 sim_internal_device_count;
|
||||
extern UNIT *sim_clock_queue;
|
||||
extern int32 sim_is_running;
|
||||
extern t_bool sim_processing_event; /* Called from sim_process_event */
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user