From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27131 invoked by alias); 11 Dec 2002 03:04:03 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27097 invoked from network); 11 Dec 2002 03:04:02 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 11 Dec 2002 03:04:02 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18Lz2i-0005wp-00; Tue, 10 Dec 2002 23:04:20 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18LxB2-0000JY-00; Tue, 10 Dec 2002 22:04:48 -0500 Date: Tue, 10 Dec 2002 19:04:00 -0000 From: Daniel Jacobowitz To: Nat Gurumoorthy Cc: gdb@sources.redhat.com Subject: Re: Proposal for customization of output of "to_pid_to_str" op in remote.c Message-ID: <20021211030447.GA32482@nevyn.them.org> Mail-Followup-To: Nat Gurumoorthy , gdb@sources.redhat.com References: <200212110224.gBB2OMH29101@ubicom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212110224.gBB2OMH29101@ubicom.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-12/txt/msg00181.txt.bz2 On Tue, Dec 10, 2002 at 06:24:22PM -0800, Nat Gurumoorthy wrote: > >Daniel Jaccobowitz wrote > >Let's take a step back. What would you be defining this macro as? What do > you want besides >"New thread"? > > Daniel, > What I am proposing is that this macro is a call into a print > function defined in my target-tdep.c file. When I type "info threads" > this interface is getting invoked and I'd like to print a more > descriptive string about the various threads running on our hardware. > Right now it prints it out as > 8 Thread 6 > Which is quite confusing. (The first number is GDB internal numbering. > The second number is the thread ID issued in my target) What will change > is that Thread 6 will become something more descriptive. The remote protocol allows you to return more information in the stub. Can you do that instead? See ThreadExtraInfo. > Ps: Daniel I apologize I you are seeing this for the 3rd time. The first > 2 times I sent it from a Windows machine and the redhat Mailer barfed. This one has natg@ as your from address, which bounces... -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer