linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Support for KGDB/gdb data watchpoints in ARM kernel?
@ 2013-12-01 19:46 Magnus Lilja
  0 siblings, 0 replies; only message in thread
From: Magnus Lilja @ 2013-12-01 19:46 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,


I've been trying to use KGDB with gdb to debug an ARM Linux kernel. Setting breakpoints at functions works fine, but
whenever I try to set a data watchpoint to make the debugger/system stop when a certain variable/memory location is
modified gdb says 'Could no insert hardware watchpoint 2.'. Although I don't have any other watchpoints/breakpoints
enabled at this time, unless there's something going on under the hood.

I've tried with Kernel 3.12 on i.MX31 (ARM1136) and i.MX53 (Cortex-A8) using both gdb 7.6.1 compiled from sources and
gdb 7.2 from Sourcery CodeBench 2011.09-70.

Any ideas, comments or RTFMs are welcome to enlighten me!


(gdb) watch *(0x8000d300)
Hardware watchpoint 2: *(0x8000d300)

(gdb) c
Continuing.
Warning:
Could not insert hardware watchpoint 2.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

(gdb) info b
Num     Type           Disp Enb Address    What
2       hw watchpoint  keep y              *(0x8000d300)

Regards, Magnus Lilja

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-01 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-01 19:46 Support for KGDB/gdb data watchpoints in ARM kernel? Magnus Lilja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).