diff options
author | marcel <marcel@FreeBSD.org> | 2012-07-02 21:18:09 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2012-07-02 21:18:09 +0000 |
commit | 50f2900b4c01dcd1864c314eb8a5746f0f8a7657 (patch) | |
tree | 085d638da57ff43bc46d324a222d70f2bdd00721 | |
parent | 67b1b7f52a4cd71315a30a4fc7f27ebf45ceaddb (diff) | |
download | FreeBSD-src-50f2900b4c01dcd1864c314eb8a5746f0f8a7657.zip FreeBSD-src-50f2900b4c01dcd1864c314eb8a5746f0f8a7657.tar.gz |
Handle traps from the debugger. We need to catch them and re-enter
the debugger where they're being taken care of.
-rw-r--r-- | sys/powerpc/booke/trap.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |