KGDB/KDB fixes and cleanups
   Clean up compile warnings in kgdboc.c and x86/kernel/kgdb.c
   Add module event hooks for simplified debugging with gdb
   Fix kdb to stop paging with 'q' on bta and dmesg
   Fix for data that scrolls off the vga console due to line wrapping
     when using the kdb pager
   The debug core registers for kernel module events which allows a
     kernel aware gdb to automatically load symbols and break on entry
     to a kernel module
   Allow kgdboc=kdb to setup kdb on the vga console
tty/console: fix warnings in drivers/tty/serial/kgdboc.c

The con_debug_leave/con_debug_enter functions are stubbed out
by defining them to (0), which causes harmless build warnings.
Using proper inline functions is the normal way to deal with

Without this patch, building the ARM bcm2835_defconfig results in:

drivers/tty/serial/kgdboc.c: In function 'kgdboc_pre_exp_handler':
drivers/tty/serial/kgdboc.c:279:3: warning: statement with no effect [-Wunused-value]
drivers/tty/serial/kgdboc.c: In function 'kgdboc_post_exp_handler':
drivers/tty/serial/kgdboc.c:293:3: warning: statement with no effect [-Wunused-value]

Signed-off-by: Arnd Bergmann <>
Cc: Anton Vorontsov <>
Cc: Greg Kroah-Hartman <>
Signed-off-by: Jason Wessel <>
1 file changed