svn commit: r229252 - stable/9/sys/ddb

Konstantin Belousov kib at FreeBSD.org
Sun Jan 1 23:58:20 UTC 2012


Author: kib
Date: Sun Jan  1 23:58:20 2012
New Revision: 229252
URL: http://svn.freebsd.org/changeset/base/229252

Log:
  Show the thread kernel stack base address for 'show threads'.

Modified:
  stable/9/sys/ddb/db_thread.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/ddb/db_thread.c
==============================================================================
--- stable/9/sys/ddb/db_thread.c	Sun Jan  1 23:55:17 2012	(r229251)
+++ stable/9/sys/ddb/db_thread.c	Sun Jan  1 23:58:20 2012	(r229252)
@@ -94,7 +94,8 @@ db_show_threads(db_expr_t addr, boolean_
 
 	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)


More information about the svn-src-all mailing list