]> git.baikalelectronics.ru Git - kernel.git/commit
kdb,kgdb: Allow arbitrary kgdb magic knock sequences
authorJason Wessel <jason.wessel@windriver.com>
Tue, 24 May 2011 15:43:06 +0000 (10:43 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Mon, 1 Aug 2011 18:23:59 +0000 (13:23 -0500)
commitec3d25fdd9c4803813c7c4217c38c83489e5d5ea
treef3f5a0c9d360e0bca2a6184b7063a4ab746dc433
parent79b036e886e493aa519e229c525a1cf6694d809e
kdb,kgdb: Allow arbitrary kgdb magic knock sequences

The first packet that gdb sends when the kernel is in kdb mode seems
to change with every release of gdb.  Instead of continuing to add
many different gdb packets, change kdb to automatically look for any
thing that looks like a gdb packet.

Example 1 cold start test:
echo g > /proc/sysrq-trigger
$D#44+

Example 2 cold start test:
echo g > /proc/sysrq-trigger
$3#33

The second one should re-enter kdb's shell right away and is purely a
test.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/debug/kdb/kdb_io.c