remarkable-linux/kernel/debug
Jason Wessel 98b54aa1a2 kgdb,debug_core: pass the breakpoint struct instead of address and memory
There is extra state information that needs to be exposed in the
kgdb_bpt structure for tracking how a breakpoint was installed.  The
debug_core only uses the the probe_kernel_write() to install
breakpoints, but this is not enough for all the archs.  Some arch such
as x86 need to use text_poke() in order to install a breakpoint into a
read only page.

Passing the kgdb_bpt structure to kgdb_arch_set_breakpoint() and
kgdb_arch_remove_breakpoint() allows other archs to set the type
variable which indicates how the breakpoint was installed.

Cc: stable@vger.kernel.org # >= 2.6.36
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
2012-03-29 17:41:25 -05:00
..
kdb kdb: Fix smatch warning on dbg_io_ops->is_console 2012-03-29 17:41:23 -05:00
debug_core.c kgdb,debug_core: pass the breakpoint struct instead of address and memory 2012-03-29 17:41:25 -05:00
debug_core.h debug_core: refactor locking for master/slave cpus 2010-10-22 15:34:13 -05:00
gdbstub.c kgdb,debug-core,gdbstub: Hook the reboot notifier for debugger detach 2012-03-22 15:07:15 -05:00
Makefile kdb: core for kgdb back end (1 of 2) 2010-05-20 21:04:20 -05:00