Debugger ::ps doesn't handle dead threads gracefully
A multi-threaded-style OS for the Spectrum +3
Brought to you by:
u6c87
If a snapshot that is fed to the debugger happens to contain one or more T_DEAD threads, the ::ps listing goes haywire.
Most likely is that t_proc points to an address since re-used for something else, and therefore contains garbage.
This looks to be as simple as modifying the thread walker in proclist() to skip T_DEAD threads.