From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29000 invoked by alias); 31 May 2007 17:23:37 -0000 Received: (qmail 28939 invoked by uid 22791); 31 May 2007 17:23:36 -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, 31 May 2007 17:23:35 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 573E7982DF; Thu, 31 May 2007 17:23:33 +0000 (GMT) Received: from localhost.localdomain (nc-71-2-221-6.dyn.embarqhsd.net [71.2.221.6]) by nan.false.org (Postfix) with ESMTP id 71B2E982DD; Thu, 31 May 2007 17:23:32 +0000 (GMT) Received: by localhost.localdomain (Postfix, from userid 1000) id EA5BA1776CA; Thu, 31 May 2007 13:23:30 -0400 (EDT) Resent-From: drow@false.org Resent-Date: Thu, 31 May 2007 13:23:30 -0400 Resent-Message-ID: <20070531172330.GH23651@localhost.localdomain> Resent-To: gdb@sourceware.org, Ulisses Furquim Date: Thu, 31 May 2007 17:23:00 -0000 From: Daniel Jacobowitz To: Ulisses Furquim Cc: gdb@sourceware.org Subject: Re: Watchpoints in an ARM platform Message-ID: <20070531170329.GA23197@localhost.localdomain> Mail-Followup-To: Ulisses Furquim , 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.13 (2006-08-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: 2007-05/txt/msg00182.txt.bz2 On Thu, May 31, 2007 at 12:18:32PM +0200, Ulisses Furquim wrote: > It says the target doesn't support that type of hardware watchpoint > when I've tried rwatch and awatch, but it works when I use the watch > command (maybe using some software watchpoint). After that I can Correct. ARM Linux has no support for hardware watchpoints; I don't think any ARM platform has watchpoints that can be used in user space like i386 / ppc do. It might be possible to expose the same watchpoint controller that JTAG would use though. > continue and it correctly stops the program the first time, but when I > continue again something goes wrong and gdb gets confused. Do you have > any idea why this happens? Am I missing anything here? A software watchpoint is implemented by repeatedly single stepping. You've stepped into something that confused GDB, probably the start of a PLT stub for a function from a dynamic library. I thought recent ARM GDB would recognize those stubs fine, but I guess something has gone wrong. -- Daniel Jacobowitz CodeSourcery