svn commit: r238032 - head/sys/powerpc/booke
Marcel Moolenaar
marcel at FreeBSD.org
Mon Jul 2 21:18:10 UTC 2012
Author: marcel
Date: Mon Jul 2 21:18:09 2012
New Revision: 238032
URL: http://svn.freebsd.org/changeset/base/238032
Log:
Handle traps from the debugger. We need to catch them and re-enter
the debugger where they're being taken care of.
Modified:
head/sys/powerpc/booke/trap.c
Modified: head/sys/powerpc/booke/trap.c
==============================================================================
--- head/sys/powerpc/booke/trap.c Mon Jul 2 21:15:56 2012 (r238031)
+++ head/sys/powerpc/booke/trap.c Mon Jul 2 21:18:09 2012 (r238032)
@@ -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;
More information about the svn-src-head
mailing list