ARM: fiq_debugger: add support for kgdb
authorColin Cross <ccross@android.com>
Thu, 15 Mar 2012 02:23:29 +0000 (19:23 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:40 +0000 (13:40 -0700)
commit182260c501354fc961e63607012acb54caa361fd
treee208911104ead50fe06f331f0bbeff64e167f011
parent5bfb852cfa586c9e61ac6e8ba89a7e570c44e122
ARM: fiq_debugger: add support for kgdb

Adds polling tty ops to the fiq debugger console tty, which allows
kgdb to run against an fiq debugger console.

Add a check in do_sysrq to prevent enabling kgdb from the fiq
debugger unless a flag (writable only by root) has been set. This
should make it safe to enable KGDB on a production device.

Also add a shortcut to enable the console and kgdb together, to
allow kgdb to be enabled when the shell on the console is not
responding.

Change-Id: Ifc65239ca96c9887431a6a36b9b44a539002f544
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/common/fiq_debugger.c