diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-03-23 08:23:29 -0500 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2010-03-23 08:23:29 -0500 |
commit | 0cf5d88525ff0f3c5477f4fadf30af5e4575fd8a (patch) | |
tree | c4249634164740cb583e92dc992635ba78393e25 /lib | |
parent | 08922fc8338f1290b4eb0838177f8ac69a70cfca (diff) |
mips,kgdb: kdb low level trap catch and stack trace
The only way the debugger can handle a trap in inside rcu_lock,
notify_die, or atomic_notifier_call_chain without a recursive fault is
to have a low level "first opportunity handler" do_trap_or_bp() handler.
Generally this will be something the vast majority of folks will not
need, but for those who need it, it is added as a kernel .config
option called KGDB_LOW_LEVEL_TRAP.
Also added was a die notification for oops such that kdb can catch an
oops for analysis.
There appeared to be no obvious way to pass the struct pt_regs from
the original exception back to the stack back tracer, so a special
case was added to show_stack() for when kdb is active because you
generally desire to generally look at the back trace of the original
exception.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.kgdb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kconfig.kgdb b/lib/Kconfig.kgdb index c56ccb4ad292..43cb93fa2651 100644 --- a/lib/Kconfig.kgdb +++ b/lib/Kconfig.kgdb @@ -59,7 +59,7 @@ config KGDB_TESTS_BOOT_STRING config KGDB_LOW_LEVEL_TRAP bool "KGDB: Allow debugging with traps in notifiers" - depends on X86 + depends on X86 || MIPS default n help This will add an extra call back to kgdb for the breakpoint |