From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20839 invoked by alias); 18 Jan 2008 15:20:49 -0000 Received: (qmail 20825 invoked by uid 22791); 18 Jan 2008 15:20:48 -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; Fri, 18 Jan 2008 15:20:28 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id C079598009; Fri, 18 Jan 2008 15:20:26 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id AA57F98005; Fri, 18 Jan 2008 15:20:26 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JFt15-0005dD-Q4; Fri, 18 Jan 2008 10:20:23 -0500 Date: Fri, 18 Jan 2008 15:20:00 -0000 From: Daniel Jacobowitz To: ligang@sunnorth.com.cn Cc: gdb@sourceware.org Subject: Re: mi-watch.exp fail, pls help Message-ID: <20080118152023.GA21602@caradoc.them.org> Mail-Followup-To: ligang@sunnorth.com.cn, gdb@sourceware.org References: <20080117144410.GF9907@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.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-01/txt/msg00167.txt.bz2 On Fri, Jan 18, 2008 at 12:25:43PM +0800, ligang@sunnorth.com.cn wrote: > After a watchpoint trap in my target, the PC points to the instruction > after the one that caused the trap. > But after stepping over the traped instruction(example store), my target > increases PC to the next instruction, so, > the source line will not be correct. It occurs at whatever > HAVE_NONSTEPPABLE_WATCHPOINT or HAVE_CONTINUABLE_WATCHPOINT. If you have continuable watchpoints, GDB should not step after hitting a watchpoint. The store has already happened when the watchpoint triggers, right? -- Daniel Jacobowitz CodeSourcery