From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 859 invoked by alias); 31 May 2007 18:30:07 -0000 Received: (qmail 847 invoked by uid 22791); 31 May 2007 18:30:06 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 31 May 2007 18:30:03 +0000 Received: by wa-out-1112.google.com with SMTP id v27so339602wah for ; Thu, 31 May 2007 11:30:02 -0700 (PDT) Received: by 10.114.59.1 with SMTP id h1mr923899waa.1180636201086; Thu, 31 May 2007 11:30:01 -0700 (PDT) Received: by 10.114.190.20 with HTTP; Thu, 31 May 2007 11:30:01 -0700 (PDT) Message-ID: Date: Thu, 31 May 2007 18:30:00 -0000 From: "Ulisses Furquim" To: gdb@sourceware.org Subject: Re: Watchpoints in an ARM platform Cc: "Ulisses Furquim" In-Reply-To: <20070531170329.GA23197@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070531170329.GA23197@localhost.localdomain> 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/msg00184.txt.bz2 Hi Daniel, On 5/31/07, Daniel Jacobowitz wrote: > 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. Ok, thanks. > > 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. Hmm.. a function from a dynamic library? Are you sure? I had only a simple loop where variable "i" was incremented and then I was printing something. Regards, -- Ulisses