From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5653 invoked by alias); 5 Feb 2010 09:40:28 -0000 Received: (qmail 5640 invoked by uid 22791); 5 Feb 2010 09:40:27 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail195.messagelabs.com (HELO mail195.messagelabs.com) (85.158.138.147) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 05 Feb 2010 09:40:21 +0000 X-VirusChecked: Checked X-Env-Sender: scott.harrison@tandberg.com X-Msg-Ref: server-6.tower-195.messagelabs.com!1265362817!28763445!1 X-StarScan-Version: 6.2.4; banners=-,-,- Received: (qmail 27419 invoked from network); 5 Feb 2010 09:40:18 -0000 Received: from unknown (HELO OSLEXCP11.eu.tandberg.int) (62.70.2.252) by server-6.tower-195.messagelabs.com with SMTP; 5 Feb 2010 09:40:18 -0000 Received: from ultra.eu.tandberg.int ([10.47.1.15]) by OSLEXCP11.eu.tandberg.int with Microsoft SMTPSVC(6.0.3790.3959); Fri, 5 Feb 2010 10:40:17 +0100 Received: from ukdev-lin-sha.tandberg.com (ukdev-lin-sha.uk.rd.tandberg.com [10.44.13.146]) by ultra.eu.tandberg.int (8.13.1/8.13.1) with SMTP id o159eGLv031835; Fri, 5 Feb 2010 10:40:17 +0100 Received: by ukdev-lin-sha.tandberg.com (Postfix, from userid 1000) id 6B9231C1A; Fri, 5 Feb 2010 09:40:16 +0000 (GMT) Date: Fri, 05 Feb 2010 09:40:00 -0000 From: scott.harrison@tandberg.com To: Joel Brobecker Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: New feature: allow thread command to take a LWPID. Message-ID: <20100205094016.GF2704@tandberg.com> References: <20100204113543.GB2704@tandberg.com> <20100205032801.GD2715@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20100205032801.GD2715@adacore.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-02/txt/msg00159.txt.bz2 Joel, Is there any existing, generic code that I can utilise to do this ? Regards, Scott. On Fri, Feb 05, 2010 at 07:28:01AM +0400, Joel Brobecker wrote: >> I am not super fond of the syntax. I don't have a better suggestion >> though :-( > >I agree about the syntax. How about using a command "switch". >For instance: > > (gdb) thread THREAD_NO > (gdb) thread /l LWP > >We could even think of adding: > > (gdb) thread /t TID > >(for the platforms that use the tid rather than the lwp). > >-- >Joel -- TANDBERG Telecom UK Ltd Registered in England and Wales No: 3390345. Registered address: Unit 2 Pine Trees, Chertsey Lane, Staines, Middlesex, TW18 3HR