From: Jason Wessel Date: Fri, 16 Mar 2012 19:20:41 +0000 (-0500) Subject: kgdb,debug-core,gdbstub: Hook the reboot notifier for debugger detach X-Git-Tag: v3.4-rc1~116^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2366e047840e33928803c0442176fb3991423da8;p=pandora-kernel.git kgdb,debug-core,gdbstub: Hook the reboot notifier for debugger detach The gdbstub and kdb should get detached if the system is rebooting. Calling gdbstub_exit() will set the proper debug core state and send a message to any debugger that is connected to correctly detach. An attached debugger will receive the exit code from include/linux/reboot.h based on SYS_HALT, SYS_REBOOT, etc... Reported-by: Jan Kiszka Signed-off-by: Jason Wessel --- Reading git-diff-tree failed