Re: [Kgdb-bugreport] [PATCH] kdb: Add message about CONFIG_DEBUG_RODATA on failure to install breakpoint

2012-03-21 Thread Jason Wessel
On 03/20/2012 04:55 PM, Jason Wessel wrote: > > Obviously we are not going to go down the horrible hack route, so I > thought I might look at how the kprobe implementation works, because > they do deal with read-only pages. They created a function called > text_poke() that is called from arc

[Kgdb-bugreport] [PATCH 1/2] kgdb, debug_core: pass the breakpoint struct instead of address and memory

2012-03-21 Thread Jason Wessel
There is extra state information that needs to be exposed in the kgdb_bpt structure for tracking whether or not a breakpoint was installed via a kprobe or via a probe_kernel_write(). In order to access the structure it needs to be passed to the kgdb_arch_set_breakpoint() and kgdb_arch_remove_break

[Kgdb-bugreport] [PATCH 0/2] Fix KGDB to work with CONFIG_DEBUG_RODATA using kprobe API

2012-03-21 Thread Jason Wessel
The inability to use software breakpoints on a kernel built with CONFIG_DEBUG_RODATA has been a problem for quite a few years. The kprobes API has been working around this limitation for a long time. This patch set changes the debug_core to use the kprobe breakpoint API directly for a kernel compi

[Kgdb-bugreport] [PATCH 2/2] kgdb, debug_core, kgdbts: End DEBUG_RODATA limitation using kprobe breakpoints

2012-03-21 Thread Jason Wessel
There has long been a limitation using software breakpoints with a kernel compiled with CONFIG_DEBUG_RODATA. The kprobe breakpoint code has its own text_poke() function which accommodates writing a breakpoint into a read-only page. The debug_core can make use of the text_poke() capabilities by us