From 38474ef29966b7cb6f0f6067e8297ff9d5eeec84 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 16 Dec 2011 11:42:50 +0000 Subject: [PATCH] Show the thread kernel stack base address for 'show threads'. Discussed with: pho MFC after: 1 week --- sys/ddb/db_thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/ddb/db_thread.c b/sys/ddb/db_thread.c index 43ed4f6d3e2..f6712a03405 100644 --- a/sys/ddb/db_thread.c +++ b/sys/ddb/db_thread.c @@ -94,7 +94,8 @@ db_show_threads(db_expr_t addr, boolean_t hasaddr, db_expr_t cnt, char *mod) thr = kdb_thr_first(); while (!db_pager_quit && thr != NULL) { - db_printf(" %6ld (%p) ", (long)thr->td_tid, thr); + db_printf(" %6ld (%p) (stack %p) ", (long)thr->td_tid, thr, + (void *)thr->td_kstack); prev_jb = kdb_jmpbuf(jb); if (setjmp(jb) == 0) { if (db_trace_thread(thr, 1) != 0)