summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-06-06 17:20:47 +0000
committerjhb <jhb@FreeBSD.org>2003-06-06 17:20:47 +0000
commitab21c0675241e6aebed28ab55870d55522f86c2f (patch)
tree5134ce60518ec63815379f8a2f808f5a689accbd /sys/ddb
parent30331b10d25f9a02a171d266049ca237f42a0f31 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/ddb/db_ps.c5
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)
OpenPOWER on IntegriCloud