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

Simon Richter Simon.Richter@hogyros.de
Fri May 28 11:20:00 GMT 2010


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



More information about the Gdb mailing list