This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]