diff options
author | kib <kib@FreeBSD.org> | 2011-12-16 11:42:50 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-12-16 11:42:50 +0000 |
commit | 30b0342f622275bfb4948b796470712830e2626a (patch) | |
tree | eb04dc20adc8745fb4a23a498b3f23256db784d6 /sys/ddb | |
parent | cfa70889cbd223b93363d3634f8ed901169a5ca6 (diff) | |
download | FreeBSD-src-30b0342f622275bfb4948b796470712830e2626a.zip FreeBSD-src-30b0342f622275bfb4948b796470712830e2626a.tar.gz |
Show the thread kernel stack base address for 'show threads'.
Discussed with: pho
MFC after: 1 week
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ddb/db_thread.c b/sys/ddb/db_thread.c index 43ed4f6..f6712a0 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) |