From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31073 invoked by alias); 1 Aug 2007 17:13:53 -0000 Received: (qmail 31064 invoked by uid 22791); 1 Aug 2007 17:13:51 -0000 X-Spam-Check-By: sourceware.org Received: from igw2.br.ibm.com (HELO igw2.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Aug 2007 17:13:45 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw2.br.ibm.com (Postfix) with ESMTP id F41DB5C168 for ; Wed, 1 Aug 2007 14:02:47 -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.4) with ESMTP id l71HDaAE1773596 for ; Wed, 1 Aug 2007 14:13:36 -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 l71HDalE014125 for ; Wed, 1 Aug 2007 14:13:36 -0300 Received: from [9.8.15.4] ([9.8.15.4]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l71HDYBc014083; Wed, 1 Aug 2007 14:13:36 -0300 Subject: Re: HW Watchpoint events and the inferior From: Luis Machado Reply-To: luisgpm@linux.vnet.ibm.com To: Daniel Jacobowitz Cc: gdb@sourceware.org In-Reply-To: <20070801160027.GA28305@caradoc.them.org> References: <1185981481.5248.11.camel@localhost> <20070801160027.GA28305@caradoc.them.org> Content-Type: text/plain Date: Wed, 01 Aug 2007 17:13:00 -0000 Message-Id: <1185988407.4992.4.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/msg00010.txt.bz2 Hi, On Wed, 2007-08-01 at 12:00 -0400, Daniel Jacobowitz wrote: > On Wed, Aug 01, 2007 at 12:18:01PM -0300, Luis Machado wrote: > > Folks, > > > > I've been investigating watchpoints on GDB and i have a question on how > > GDB handles Hardware Watchpoint events and which TID it uses to grab > > information about the stopped_data_address, considering a multithreaded > > application. > > GDB does not contain support for watchpoints in multi-threaded > programs. You can find several patches and discussions of this issue > in the list archives as recently as the end of June. Yes, in fact i'm looking forward to improve that situation. That's why i'm going through some of the inferior handling code. Unfortunatelly there isn't much documentation there, and sometimes it gets rather bleak as to what GDB is really trying to do, and how it would handle multiple traps. Regards, -- Luis Machado Software Engineer IBM Linux Technology Center LoP Toolchain/Debuggers' team Phone: +55 19-2132-2218 T/L: 839-2218 e-mail: luisgpm@vnet.linux.ibm.com