Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 23:58:20 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229252 - stable/9/sys/ddb
Message-ID:  <201201012358.q01NwKU7038567@svn.freebsd.org>

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



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