From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6871 invoked by alias); 22 Sep 2007 15:37:17 -0000 Received: (qmail 6857 invoked by uid 22791); 22 Sep 2007 15:37:16 -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; Sat, 22 Sep 2007 15:37:13 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 7EB1A982AD; Sat, 22 Sep 2007 15:37:11 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 34FDC9812E; Sat, 22 Sep 2007 15:37:11 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IZ72b-0002po-Py; Sat, 22 Sep 2007 11:37:09 -0400 Date: Sat, 22 Sep 2007 15:37:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [rfc, rfa/doc] Multi-threaded watchpoint improvements Message-ID: <20070922153709.GA10743@caradoc.them.org> Mail-Followup-To: Eli Zaretskii , gdb-patches@sourceware.org References: <20070916183949.GA23966@caradoc.them.org> <20070922140409.GB6285@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00301.txt.bz2 On Sat, Sep 22, 2007 at 04:13:24PM +0200, Eli Zaretskii wrote: > > > > +@value{GDBN} only supports process-wide watchpoints. > > > > > > "Process-wide watchpoints'' as opposed to what? > > > > As opposed to thread-specific watchpoints. We can make a watchpoint > > act like it is thread-specific (or we will be able to once Luis's > > patch is done), but we don't support setting hardware watchpoints that > > only trigger in a specific thread. Yet, anyway. > > I think you should add something like this explanation, to make the > intent clear. Is this clearer? @value{GDBN} only supports process-wide watchpoints, which trigger in all threads. If the target supports threads, per-thread debug registers, and watchpoints which only affect a single thread, it should set the per-thread debug registers for all threads to the same value. On @sc{gnu}/Linux native targets, this is accomplished by using @code{ALL_LWPS} in @code{target_insert_watchpoint} and @code{target_remove_watchpoint} and by using @code{linux_set_new_thread} to register a handler for newly created threads. -- Daniel Jacobowitz CodeSourcery