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: Simon Richter <Simon dot Richter at hogyros dot de>
- To: xingxing pan <forandom at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 28 May 2010 13:20:25 +0200
- Subject: Re: [HELP]Can GDB for ARM set hard breakpoint when native debugging?
- References: <AANLkTinHIdHmkoXyou1g_CfkOIvKdOFND_tlvYqdvuzb@mail.gmail.com>
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