From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12194 invoked by alias); 3 Oct 2006 04:07:33 -0000 Received: (qmail 11853 invoked by uid 22791); 3 Oct 2006 04:07:29 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 03 Oct 2006 04:07:23 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GUbYu-0007bu-RW; Tue, 03 Oct 2006 00:07:20 -0400 Date: Tue, 03 Oct 2006 04:07:00 -0000 From: Daniel Jacobowitz To: Steve Freeland Cc: gdb@sources.redhat.com Subject: Re: Watchpoints in multithreaded programs Message-ID: <20061003040720.GA29226@nevyn.them.org> Mail-Followup-To: Steve Freeland , gdb@sources.redhat.com References: <20061003035310.80501.qmail@web34211.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061003035310.80501.qmail@web34211.mail.mud.yahoo.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00010.txt.bz2 On Mon, Oct 02, 2006 at 08:53:10PM -0700, Steve Freeland wrote: > Is there anything particularly wrong with just setting the watchpoint > individually in each of the threads? I haven't a clue about > portability, but on I've checked on i386 Linux and this seems to > work... at least, it solves my problem. I can clean this up and make > it submittable as a patch, but first I'd like to know if there's a > problem with it conceptually, as I've never worked with gdb internals > before: It's a little bit trickier than that, because you need to check all the various status registers afterwards, IIRC. But that's the basic idea and the patches I referenced in the Red Hat SRPM add a generic way of handling this. -- Daniel Jacobowitz CodeSourcery