[HELP]Can GDB for ARM set hard breakpoint when native debugging?

Matthew Gretton-Dann matthew.gretton-dann@arm.com
Fri May 28 09:28:00 GMT 2010


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



More information about the Gdb mailing list