kdb: Setup basic kdb state before invoking commands via kgdb
authorMatt Klein <mklein@twitter.com>
Wed, 2 Jan 2013 21:20:49 +0000 (13:20 -0800)
committerJason Wessel <jason.wessel@windriver.com>
Sat, 2 Mar 2013 14:52:17 +0000 (08:52 -0600)
commit00370b8f8dd6e3171b8202f9c5187a5f73e99497
tree5d15f25177a0e4f92e664b27658a48dfeadbbab7
parent5f784f798c1a6367d314b3ea5d742a5dcc8dc7ca
kdb: Setup basic kdb state before invoking commands via kgdb

Although invasive kdb commands are not supported via kgdb, some useful
non-invasive commands like bt* require basic kdb state to be setup before
calling into the kdb code. Factor out some of this code and call it before
and after executing kdb commands via kgdb.

Signed-off-by: Matt Klein <mklein@twitter.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/debug/debug_core.h
kernel/debug/gdbstub.c
kernel/debug/kdb/kdb_debugger.c