Skip to content
Commit ba797b28 authored by Jason Wessel's avatar Jason Wessel
Browse files

powerpc,kgdb: Introduce low level trap catching



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 allow the kernel debugger to handle the exception first in
program_check_exception().

The other change here is to make sure that kgdb_handle_exception() is
called with correct parameters when catching an oops, because kdb
needs to know if the entry was an oops, single step, or breakpoint
exception.

[benh@kernel.crashing.org: move debugger_bpt instead of #ifdef]

CC: Paul Mackerras <paulus@samba.org>
Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent f503b5ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment