From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23524 invoked by alias); 12 Apr 2005 19:05:58 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23506 invoked from network); 12 Apr 2005 19:05:54 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 12 Apr 2005 19:05:54 -0000 Received: from zaretski (IGLD-84-228-140-110.inter.net.il [84.228.140.110]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id EDE71619 (AUTH halo1); Tue, 12 Apr 2005 22:05:45 +0300 (IDT) Date: Tue, 12 Apr 2005 19:05:00 -0000 From: "Eli Zaretskii" To: "Maciej W. Rozycki" , gdb-patches@sources.redhat.com Message-ID: <01c53f92$Blat.v2.4$280330c0@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 In-reply-to: <20050412185549.GA9715@nevyn.them.org> (message from Daniel Jacobowitz on Tue, 12 Apr 2005 14:55:49 -0400) Subject: Re: Support for "break *ADDRESS thread THREADNO" Reply-to: Eli Zaretskii References: <20050412181334.GA2560@nevyn.them.org> <01c53f90$Blat.v2.4$17427900@zahav.net.il> <20050412185549.GA9715@nevyn.them.org> X-SW-Source: 2005-04/txt/msg00101.txt.bz2 > Date: Tue, 12 Apr 2005 14:55:49 -0400 > From: Daniel Jacobowitz > Cc: "Maciej W. Rozycki" , gdb-patches@sources.redhat.com > > There's already common code for this, that's where most of the 'thread > THREADNO' support is. I think it's in linespec.c somewhere, but it > might be in breakpoint.c. Doing this in one of these two place would be okay, since they are language independent. > TBH, the mechanism is fragile; I can't think of a more robust way but > there must be one. How about a convenience variable $thread that will hold the current thread ID? Then we could simply use a condition "if $thread == TID". Or maybe a command option "break --thread=ID *ADDR". (Or did we decide to not use such syntax?)