Handle traps from the debugger. We need to catch them and re-enter

the debugger where they're being taken care of.
This commit is contained in:
Marcel Moolenaar 2012-07-02 21:18:09 +00:00
parent 816da2204a
commit 863fcb91a4

View File

@ -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;