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:
parent
816da2204a
commit
863fcb91a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user