diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:26 -0400 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:26 -0400 |
commit | 5dd11d5d47d248850c58292513f0e164ba98b01e (patch) | |
tree | fd3c5f27dd40d6a483483de3644ca060a5cafd75 /arch/mips/include/asm/kgdb.h | |
parent | ba797b28131b1f1367b662936ea370239d603cff (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 'arch/mips/include/asm/kgdb.h')
-rw-r--r-- | arch/mips/include/asm/kgdb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/kgdb.h b/arch/mips/include/asm/kgdb.h index 48223b09396c..19002d605ac4 100644 --- a/arch/mips/include/asm/kgdb.h +++ b/arch/mips/include/asm/kgdb.h | |||
@@ -38,6 +38,8 @@ extern int kgdb_early_setup; | |||
38 | extern void *saved_vectors[32]; | 38 | extern void *saved_vectors[32]; |
39 | extern void handle_exception(struct pt_regs *regs); | 39 | extern void handle_exception(struct pt_regs *regs); |
40 | extern void breakinst(void); | 40 | extern void breakinst(void); |
41 | extern int kgdb_ll_trap(int cmd, const char *str, | ||
42 | struct pt_regs *regs, long err, int trap, int sig); | ||
41 | 43 | ||
42 | #endif /* __KERNEL__ */ | 44 | #endif /* __KERNEL__ */ |
43 | 45 | ||