This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [HELP]Can GDB for ARM set hard breakpoint when native debugging?
- From: Matthew Gretton-Dann <matthew dot gretton-dann at arm dot com>
- To: xingxing pan <forandom at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 28 May 2010 10:28:03 +0100
- Subject: Re: [HELP]Can GDB for ARM set hard breakpoint when native debugging?
- References: <AANLkTinHIdHmkoXyou1g_CfkOIvKdOFND_tlvYqdvuzb@mail.gmail.com>
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