From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15404 invoked by alias); 11 Dec 2002 22:57:32 -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 15397 invoked from network); 11 Dec 2002 22:57:32 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 11 Dec 2002 22:57:32 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18MHfj-0007ml-00; Wed, 11 Dec 2002 18:57:51 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18MFo3-0000pg-00; Wed, 11 Dec 2002 17:58:19 -0500 Date: Wed, 11 Dec 2002 14:57: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: <20021211225819.GA3183@nevyn.them.org> Mail-Followup-To: Nat Gurumoorthy , gdb@sources.redhat.com References: <200212112251.gBBMpkq08316@ubicom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212112251.gBBMpkq08316@ubicom.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-12/txt/msg00185.txt.bz2 On Wed, Dec 11, 2002 at 02:51:46PM -0800, Nat Gurumoorthy wrote: > >Daniel Jaccobowitz wrote > >The remote protocol allows you to return more information in the stub. > >Can you do that instead? See ThreadExtraInfo. > > Daniel, > I know that. Just as the remote protocol allows me to print out > extra information about each thread, I would like it to let me print > out the name of the thread and not call it "Thread 1" or "Thread 2" > etc. The proposed interface will allow the target dependent layer > to print what ever it wants. If the target dependent layer does not > specify the macro the behavior reverts to the Original mode. > > Regards > Nat > > ps: Thanks for pointing out the problem with the natg@ubicom.com address. > It has been fixed. What's wrong with: 1 Thread 1 (Original thread) 2 Thread 2 (Extra thread) 3 Thread 4 (Thread I Felt Like) ? What output do you want? I'd like to keep it printing the TID for consistency. In any case, a target macro the way you did this is probably the wrong way. It looks almost like you want a gdbarch method... -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer