From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15870 invoked by alias); 28 May 2010 09:28:22 -0000 Received: (qmail 15857 invoked by uid 22791); 28 May 2010 09:28:21 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_05,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cam-admin0.cambridge.arm.com (HELO cam-admin0.cambridge.arm.com) (217.140.96.50) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 May 2010 09:28:09 +0000 Received: from cam-owa2.Emea.Arm.com (cam-owa2.emea.arm.com [10.1.105.18]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id o4S9S3eI000551; Fri, 28 May 2010 10:28:03 +0100 (BST) Received: from [10.1.77.63] ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 28 May 2010 10:28:03 +0100 Subject: Re: [HELP]Can GDB for ARM set hard breakpoint when native debugging? From: Matthew Gretton-Dann To: xingxing pan Cc: gdb@sourceware.org In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" Date: Fri, 28 May 2010 09:28:00 -0000 Message-ID: <1275038883.23133.51.camel@e102319-lin.cambridge.arm.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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/msg00102.txt.bz2 Hi, On Fri, 2010-05-28 at 14:00 +0800, xingxing pan wrote: > Hey guys, can GDB for ARM set hard breakpoint when native debugging? > 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. GDB does not use hardware breakpoints when debugging native ARM Linux applications. > Dose ARM has some hardware unit to support hard breakpoint? Some ARM CPUs have hardware breakpoint support (for instance all current Cortex-A processors). However, the number of hardware breakpoints available varies depending on the CPU. Thanks, Matt -- Matthew Gretton-Dann Principal Engineer - PDSW Tools ARM Ltd