From owner-svn-src-all@FreeBSD.ORG Fri Dec 16 11:42:50 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB64E1065670; Fri, 16 Dec 2011 11:42:50 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DA96B8FC15; Fri, 16 Dec 2011 11:42:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pBGBgoFX004860; Fri, 16 Dec 2011 11:42:50 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pBGBgoSB004858; Fri, 16 Dec 2011 11:42:50 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201112161142.pBGBgoSB004858@svn.freebsd.org> From: Konstantin Belousov Date: Fri, 16 Dec 2011 11:42:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228568 - head/sys/ddb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2011 11:42:51 -0000 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)