svn commit: r228568 - head/sys/ddb

Konstantin Belousov kib at FreeBSD.org
Fri Dec 16 11:42:51 UTC 2011


Author: kib
Date: Fri Dec 16 11:42:50 2011
New Revision: 228568
URL: http://svn.freebsd.org/changeset/base/228568

Log:
  Show the thread kernel stack base address for 'show threads'.
  
  Discussed with:	pho
  MFC after:	1 week

Modified:
  head/sys/ddb/db_thread.c

Modified: head/sys/ddb/db_thread.c
==============================================================================
--- head/sys/ddb/db_thread.c	Fri Dec 16 10:56:16 2011	(r228567)
+++ head/sys/ddb/db_thread.c	Fri Dec 16 11:42:50 2011	(r228568)
@@ -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-head mailing list