From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3255 invoked by alias); 14 Aug 2007 16:42:09 -0000 Received: (qmail 3219 invoked by uid 22791); 14 Aug 2007 16:42:07 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 14 Aug 2007 16:41:57 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CBC9E98308; Tue, 14 Aug 2007 16:41:56 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id A3E2498100; Tue, 14 Aug 2007 16:41:56 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IKzSs-0005yN-62; Tue, 14 Aug 2007 12:41:54 -0400 Date: Tue, 14 Aug 2007 16:42:00 -0000 From: Daniel Jacobowitz To: Luis Machado Cc: gdb@sourceware.org Subject: Re: Watchpoints stopping GDB on specific threads Message-ID: <20070814164154.GA22717@caradoc.them.org> Mail-Followup-To: Luis Machado , gdb@sourceware.org References: <1187108458.4388.14.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1187108458.4388.14.camel@localhost> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00114.txt.bz2 On Tue, Aug 14, 2007 at 01:20:58PM -0300, Luis Machado wrote: > At a first glance, i'd need to work in a different way than the > breakpoint case, because the entire watchpoint expression is handled by > a expression parser. It automatically processes the "thread " > parameter and of course gives an error because that's not recognized. Do > you have any idea on how this could be solved in a clever way? We could > start parsing the expression from the end, and try to locate the "thread > " parameter, and then hand over the remaining parameters to the > expression parser. What do you think? You might want to take a look at this: http://sourceware.org/ml/gdb-patches/2005-04/msg00092.html break *EXPRESSION thread N is the same as watch EXPRESSION thread N. Eli suggested basically the same thing you did; it might work :-) -- Daniel Jacobowitz CodeSourcery