From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10844 invoked by alias); 6 Mar 2008 13:13:53 -0000 Received: (qmail 10832 invoked by uid 22791); 6 Mar 2008 13:13:52 -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; Thu, 06 Mar 2008 13:13:29 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 42A26983AC; Thu, 6 Mar 2008 13:13:27 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 23AC898119; Thu, 6 Mar 2008 13:13:27 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JXFuX-0005Y0-Nx; Thu, 06 Mar 2008 08:13:25 -0500 Date: Thu, 06 Mar 2008 16:19:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: Write watchpoints Message-ID: <20080306131325.GA21308@caradoc.them.org> Mail-Followup-To: Vladimir Prus , gdb@sources.redhat.com References: <15867705.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-12-11) 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: 2008-03/txt/msg00066.txt.bz2 On Thu, Mar 06, 2008 at 11:00:40AM +0300, Vladimir Prus wrote: > 1. HAVE_STEPPABLE_WATCHPOINT tells that you can just single-step over the > watchpoint, while it's set, and it won't fire during single-stepping. > The macro basically looks at to_have_steppable_watchpoint field in target. > 2. gdbarch_have_nonsteppable_watchpoint tells that we have to single-step > over watchpoint, while it's disabled. > > It appears that you need to arrange for exactly one of those to return true. Yes, this sounds like a nonsteppable watchpoint. The default, if neither of those is set, is for continuable watchpoints - ones we can continue through once they've been hit. -- Daniel Jacobowitz CodeSourcery