aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2012-07-02 21:18:09 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2012-07-02 21:18:09 +0000
commit863fcb91a4ace24475f6c986a65d894757006ad2 (patch)
tree085d638da57ff43bc46d324a222d70f2bdd00721
parent816da2204accca2324cd6000f981781940cb6327 (diff)
downloadsrc-863fcb91a4ace24475f6c986a65d894757006ad2.tar.gz
src-863fcb91a4ace24475f6c986a65d894757006ad2.zip
Handle traps from the debugger. We need to catch them and re-enter
the debugger where they're being taken care of.
Notes
Notes: svn path=/head/; revision=238032
-rw-r--r--sys/powerpc/booke/trap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/powerpc/booke/trap.c b/sys/powerpc/booke/trap.c
index 091fce08f1fb..cd2ab3865bd0 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;