From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1240 invoked by alias); 15 Aug 2007 19:12:49 -0000 Received: (qmail 1105 invoked by uid 22791); 15 Aug 2007 19:12:48 -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, 15 Aug 2007 19:12:37 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw2.br.ibm.com (Postfix) with ESMTP id 29B495BEA0 for ; Wed, 15 Aug 2007 16:01:09 -0300 (BRT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l7FJCUnj1151108 for ; Wed, 15 Aug 2007 16:12:30 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l7FJCU5p002643 for ; Wed, 15 Aug 2007 16:12:30 -0300 Received: from dyn532126.br.ibm.com (dyn532126.br.ibm.com [9.18.238.250]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l7FJCUHn002640; Wed, 15 Aug 2007 16:12:30 -0300 Subject: Re: gdbserver i386_linux hardware watchpoints in a multi threaded application From: Luis Machado Reply-To: luisgpm@linux.vnet.ibm.com To: Claus Baumgartner Cc: gdb@sourceware.org In-Reply-To: <46C34837.1070602@netsonic.fi> References: <46C34837.1070602@netsonic.fi> Content-Type: text/plain Date: Wed, 15 Aug 2007 19:12:00 -0000 Message-Id: <1187205149.4886.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/msg00126.txt.bz2 On Wed, 2007-08-15 at 21:38 +0300, Claus Baumgartner wrote: > Hi, > > I implemented the hardware watchpoints for the i386 linux target in the > gdbserver and it works fine in the same thread where the watchpoint > has been assigned. I would like to use gdb and gdb server to debug > memory locations overwritten by other threads and this is where gdb fails. > > Is there any work in progress regarding this? Yes, there is. The patch Jeff Johnston wrote some time ago should address this on GDB. I'm currently taking over his work and adding support for ppc. You can check the most up-to-date patch on these messages: http://sourceware.org/ml/gdb-patches/2007-08/msg00253.html http://sourceware.org/ml/gdb-patches/2007-08/msg00254.html The original post by Jeff Johnston here: http://sourceware.org/ml/gdb-patches/2004-06/msg00278.html Best regards, -- Luis Machado Software Engineer IBM Linux Technology Center e-mail: luisgpm@linux.vnet.ibm.com