diff options
author | jhb <jhb@FreeBSD.org> | 2003-06-06 17:20:47 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-06-06 17:20:47 +0000 |
commit | ab21c0675241e6aebed28ab55870d55522f86c2f (patch) | |
tree | 5134ce60518ec63815379f8a2f808f5a689accbd /sys/ddb/db_ps.c | |
parent | 30331b10d25f9a02a171d266049ca237f42a0f31 (diff) | |
download | FreeBSD-src-ab21c0675241e6aebed28ab55870d55522f86c2f.zip FreeBSD-src-ab21c0675241e6aebed28ab55870d55522f86c2f.tar.gz |
Handle the TDS_INACTIVE state by printing '[INACTIVE]' instead of
panic'ing. Also, for unknown thread states, print out the value rather
than panic. Panic'ing in the debugger is pointless at best.
Diffstat (limited to 'sys/ddb/db_ps.c')
-rw-r--r-- | sys/ddb/db_ps.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c index d414673..6cefaef 100644 --- a/sys/ddb/db_ps.c +++ b/sys/ddb/db_ps.c @@ -181,8 +181,11 @@ dumpthread(volatile struct proc *p, volatile struct thread *td) case TDS_RUNNING: db_printf("[CPU %d]", td->td_oncpu); break; + case TDS_INACTIVE: + db_printf("[INACTIVE]"); + break; default: - panic("unknown thread state"); + db_printf("[UNK: %#x]", td->td_state); } if (p->p_flag & P_THREADED) { if (td->td_kse) |