Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Dec 2011 11:42:50 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228568 - head/sys/ddb
Message-ID:  <201112161142.pBGBgoSB004858@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112161142.pBGBgoSB004858>