From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6345 invoked by alias); 17 Jan 2008 14:44:33 -0000 Received: (qmail 6337 invoked by uid 22791); 17 Jan 2008 14:44:33 -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, 17 Jan 2008 14:44:13 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 1DD5598297; Thu, 17 Jan 2008 14:44:12 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 08C689801D; Thu, 17 Jan 2008 14:44:11 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JFVyU-0002jE-GH; Thu, 17 Jan 2008 09:44:10 -0500 Date: Thu, 17 Jan 2008 14:44:00 -0000 From: Daniel Jacobowitz To: ligang@sunnorth.com.cn Cc: gdb@sourceware.org Subject: Re: mi-watch.exp fail, pls help Message-ID: <20080117144410.GF9907@caradoc.them.org> Mail-Followup-To: ligang@sunnorth.com.cn, gdb@sourceware.org References: 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/msg00152.txt.bz2 On Thu, Jan 17, 2008 at 11:57:33AM +0800, ligang@sunnorth.com.cn wrote: > After setting watchpoint to C, it will be hit at 0x11e, and PC will be > 0x120 at the time, > but GDB will execute a single step, after that, PC will be 0x122, so > source line will be 36 but not > expected 35. > Anyone can tell me how to resolve this problem? Check your target configuration. GDB thinks you have non-steppable watchpoints, but you actually have continuable watchpoints. -- Daniel Jacobowitz CodeSourcery