From 50f2900b4c01dcd1864c314eb8a5746f0f8a7657 Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 2 Jul 2012 21:18:09 +0000 Subject: Handle traps from the debugger. We need to catch them and re-enter the debugger where they're being taken care of. --- sys/powerpc/booke/trap.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/powerpc') diff --git a/sys/powerpc/booke/trap.c b/sys/powerpc/booke/trap.c index 091fce0..cd2ab38 100644 --- a/sys/powerpc/booke/trap.c +++ b/sys/powerpc/booke/trap.c @@ -143,6 +143,13 @@ trap(struct trapframe *frame) int sig, type, user; ksiginfo_t ksi; +#ifdef KDB + if (kdb_active) { + kdb_reenter(); + return; + } +#endif + PCPU_INC(cnt.v_trap); td = curthread; -- cgit v1.1