Jason Wessel ba797b2813 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: Jason Wessel <jason.wessel@windriver.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-05-20 21:04:25 -05:00
..
2010-03-05 03:04:08 -06:00
2009-10-30 17:20:55 +11:00
2010-03-05 03:04:08 -06:00
2010-03-05 03:04:08 -06:00
2010-03-09 11:52:52 +11:00
2010-03-01 12:35:52 -03:00
2010-03-09 11:52:52 +11:00
2009-07-12 12:22:34 -07:00
2010-03-12 15:52:32 -08:00
2009-12-09 17:09:33 +11:00