linux/kernel/debug
Jason Wessel a37372f6c3 kdb: Prevent kernel oops with kdb_defcmd
The kdb_defcmd can only be used to display the available command aliases
while using the kernel debug shell.  If you try to define a new macro
while the kernel debugger is active it will oops.  The debug shell
macros must use pre-allocated memory set aside at the time kdb_init()
is run, and the kdb_defcmd is restricted to only working at the time
that the kdb_init sequence is being run, which only occurs if you
actually activate the kernel debugger.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
2013-03-02 08:52:19 -06:00
..
kdb kdb: Prevent kernel oops with kdb_defcmd 2013-03-02 08:52:19 -06:00
debug_core.c KGDB/KDB fixes and cleanups 2012-10-13 11:16:58 +09:00
debug_core.h kdb: Setup basic kdb state before invoking commands via kgdb 2013-03-02 08:52:17 -06:00
gdbstub.c kdb: Setup basic kdb state before invoking commands via kgdb 2013-03-02 08:52:17 -06:00
Makefile kdb: core for kgdb back end (1 of 2) 2010-05-20 21:04:20 -05:00