From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21101 invoked by alias); 14 Aug 2007 20:19:06 -0000 Received: (qmail 20935 invoked by uid 22791); 14 Aug 2007 20:19:05 -0000 X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 14 Aug 2007 20:18:59 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw1.br.ibm.com (Postfix) with ESMTP id E400114804B for ; Tue, 14 Aug 2007 17:02:24 -0300 (BRT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l7EKIqjx741510 for ; Tue, 14 Aug 2007 17:18:54 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l7EKIpVu018193 for ; Tue, 14 Aug 2007 17:18:51 -0300 Received: from dyn532126.br.ibm.com (dyn532126.br.ibm.com [9.18.238.250]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l7EKIoMA018152; Tue, 14 Aug 2007 17:18:50 -0300 Subject: Re: Watchpoints stopping GDB on specific threads From: Luis Machado Reply-To: luisgpm@linux.vnet.ibm.com To: Eli Zaretskii Cc: gdb@sourceware.org In-Reply-To: References: <1187108458.4388.14.camel@localhost> Content-Type: text/plain Date: Tue, 14 Aug 2007 20:19:00 -0000 Message-Id: <1187122729.8591.20.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit 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/msg00118.txt.bz2 On Tue, 2007-08-14 at 22:41 +0300, Eli Zaretskii wrote: > > From: Luis Machado > > Date: Tue, 14 Aug 2007 13:20:58 -0300 > > > > I'm looking forward to have the same functionality for watchpoints. So > > whenever GDB detects a watchpoint trigger, it would verify the current > > thread and would stop only if the thread matches the ID we provided in a > > command like "watch
thread ". if no ID is provided, GDB > > would stop at every thread as usual (assuming a threaded watchpoint > > support). > > Unless I misunderstand something fundamental, if the current thread ID > is in some variable, you could define a condition for a watchpoint, > no? Using the "if" statement? But in which kind of variable? A user defined variable on GDB or a variable inside the inferior? -- Luis Machado Software Engineer IBM Linux Technology Center LoP Toolchain/Debuggers' team Phone: +55 19-2132-2218 T/L: 839-2218 e-mail: luisgpm@linux.vnet.ibm.com