From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27981 invoked by alias); 28 May 2010 11:20:42 -0000 Received: (qmail 27938 invoked by uid 22791); 28 May 2010 11:20:40 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from static.88-198-202-190.clients.your-server.de (HELO kleinhenz.com) (88.198.202.190) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 May 2010 11:20:31 +0000 Received: from localhost (dslb-094-218-048-004.pools.arcor-ip.net [94.218.48.4]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Simon Richter", Issuer "CA Cert Signing Authority" (verified OK)) by kleinhenz.com (Postfix) with ESMTP id 0F7133F3F36; Fri, 28 May 2010 11:13:49 +0200 (CEST) Date: Fri, 28 May 2010 11:20:00 -0000 From: Simon Richter To: xingxing pan Cc: gdb@sourceware.org Subject: Re: [HELP]Can GDB for ARM set hard breakpoint when native debugging? Message-ID: <20100528112025.GA18727@richter> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-05/txt/msg00103.txt.bz2 Hi, On Fri, May 28, 2010 at 02:00:24PM +0800, xingxing pan wrote: > Hey guys, can GDB for ARM set hard breakpoint when native debugging? On most ARM models, hardware breakpoints are only available through the JTAG interface. > I found GDB for i386 use the ptrace(POKE_USER,...) to set hard > breakpoint. But in ARM's code I can't find such similar facility. POKE_USER is a software breakpoint -- an instruction is replaced by something that causes an exception, which is then passed to the application as a signal, which in turn causes the traced process to stop and gdb to be notified. Simon