From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10064 invoked by alias); 14 Jan 2011 18:31:26 -0000 Received: (qmail 10056 invoked by uid 22791); 14 Jan 2011 18:31:25 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e24smtp02.br.ibm.com (HELO e24smtp02.br.ibm.com) (32.104.18.86) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Jan 2011 18:31:20 +0000 Received: from mailhub1.br.ibm.com (mailhub1.br.ibm.com [9.18.232.109]) by e24smtp02.br.ibm.com (8.14.4/8.13.1) with ESMTP id p0EIrUWf015935 for ; Fri, 14 Jan 2011 16:53:30 -0200 Received: from d24av05.br.ibm.com (d24av05.br.ibm.com [9.18.232.44]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p0EIbgoP1008050 for ; Fri, 14 Jan 2011 16:37:42 -0200 Received: from d24av05.br.ibm.com (loopback [127.0.0.1]) by d24av05.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p0EIU1p1028868 for ; Fri, 14 Jan 2011 16:30:01 -0200 Received: from [9.18.197.115] ([9.18.197.115]) by d24av05.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p0EIU1Xn028822; Fri, 14 Jan 2011 16:30:01 -0200 Subject: Re: RFA: display thread names From: Thiago Jung Bauermann To: Tom Tromey Cc: gdb-patches@sourceware.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Fri, 14 Jan 2011 18:42:00 -0000 Message-ID: <1295029800.27269.28.camel@hactar> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00340.txt.bz2 On Wed, 2011-01-12 at 08:47 -0700, Tom Tromey wrote: > @@ -1237,6 +1238,11 @@ extern char *normal_pid_to_str (ptid_t ptid); > #define target_extra_thread_info(TP) \ > (current_target.to_extra_thread_info (TP)) > > +/* Return the thread's name. A NULL result is ok. */ > + > +#define target_thread_name(TP) \ > + (current_target.to_thread_name (TP)) > + > /* Attempts to find the pathname of the executable file > that was run to create a specified process. I've been told that target macros are deprecated and new code should use functions instead (as in target_fetch_registers). -- []'s Thiago Jung Bauermann IBM Linux Technology Center