From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1320 invoked by alias); 14 Nov 2005 14:42:54 -0000 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 Received: (qmail 1177 invoked by uid 22791); 14 Nov 2005 14:42:46 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 14 Nov 2005 14:42:46 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EbfXg-0005yw-5W; Mon, 14 Nov 2005 09:42:44 -0500 Date: Mon, 14 Nov 2005 14:42:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: gdb@sources.redhat.com, Vladimir Prus Subject: Re: read watchpoints ignored? Message-ID: <20051114144244.GB22190@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , gdb@sources.redhat.com, Vladimir Prus References: <200511111622.01337.ghost@cs.msu.su> <20051113164546.GA465@nevyn.them.org> <20051114024345.GB10567@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00269.txt.bz2 On Mon, Nov 14, 2005 at 06:38:20AM +0200, Eli Zaretskii wrote: > We need to find a way to get GDB to check whether the watchpoint fired > during such stepping. > > > I'm talking about watchpoint_check. If that had been called, we would > > have updated the value stored in the watchpoint for "a", and at the > > next read watchpoint, it would not appear to have changed. > > I think we need call watchpoint_check only if > target_stopped_data_address says the watchpoint fired. I'm not sure if we can call watchpoint_check when not checking bpstats; too much context. In any case, for now we only need to fix one of the two bugs; what do you think of the patch I just posted? -- Daniel Jacobowitz CodeSourcery, LLC