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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to