From owner-svn-src-head@FreeBSD.ORG Mon Nov 22 17:46:24 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7922106566C; Mon, 22 Nov 2010 17:46:24 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from mail1.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by mx1.freebsd.org (Postfix) with ESMTP id 819648FC12; Mon, 22 Nov 2010 17:46:24 +0000 (UTC) Received: from labgw2.phaedrus.sandvine.com (192.168.222.22) by WTL-EXCH-1.sandvine.com (192.168.196.31) with Microsoft SMTP Server id 14.0.694.0; Mon, 22 Nov 2010 12:46:23 -0500 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 10332) id 8837833C00; Mon, 22 Nov 2010 12:46:23 -0500 (EST) Date: Mon, 22 Nov 2010 12:46:23 -0500 From: Ed Maste To: Attilio Rao Message-ID: <20101122174623.GA93150@sandvine.com> References: <201011221442.oAMEgD9j094882@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <201011221442.oAMEgD9j094882@svn.freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r215679 - in head: contrib/binutils/bfd contrib/binutils/binutils contrib/binutils/include/elf contrib/file contrib/gdb/gdb gnu/usr.bin/gdb/libgdb sys/compat/freebsd32 sys/kern sys/sys ... X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2010 17:46:24 -0000 On Mon, Nov 22, 2010 at 02:42:13PM +0000, Attilio Rao wrote: > Author: attilio > Date: Mon Nov 22 14:42:13 2010 > New Revision: 215679 > URL: http://svn.freebsd.org/changeset/base/215679 > > Log: > Add the ability for GDB to printout the thread name along with other > thread specific informations. This change is particularly useful if one has a heavily threaded app that uses pthread_set_name_np() to set its thread names. This is an example of the output you get with stock GDB: (gdb) info threads 12 Thread 2a4041c0 (LWP 100184) 0x29e91fe3 in memset () 11 Thread 2a404700 (LWP 100190) 0x29e2be33 in poll () 10 Thread 2a404c40 (LWP 100191) 0x29ed85e7 in _umtx_op_err () And with this change: (gdb) info threads 41 Thread 0x9d80000 (LWP 100259/initial thread) 0x6a3f23ff in nanosleep () 40 Thread 0x9f48600 (LWP 100315/EventLoop) 0x6a38e427 in _umtx_op () 39 Thread 0x9f48800 (LWP 100321/ntfy) 0x6a38e427 in _umtx_op () -Ed