Don't enable interrupts for a kernel breakpoint or trace trap. Otherwise,
this negates the explicit disabling of interrupts when entering the debugger in Debugger().
This commit is contained in:
parent
393c26a080
commit
297c46b68c
@ -254,7 +254,7 @@ trap(frame)
|
|||||||
printf(
|
printf(
|
||||||
"pid %ld (%s): trap %d with interrupts disabled\n",
|
"pid %ld (%s): trap %d with interrupts disabled\n",
|
||||||
(long)curproc->p_pid, curproc->p_comm, type);
|
(long)curproc->p_pid, curproc->p_comm, type);
|
||||||
else if (type != T_BPTFLT && type != T_TRCTRAP)
|
else if (type != T_BPTFLT && type != T_TRCTRAP) {
|
||||||
/*
|
/*
|
||||||
* XXX not quite right, since this may be for a
|
* XXX not quite right, since this may be for a
|
||||||
* multiple fault in user mode.
|
* multiple fault in user mode.
|
||||||
@ -267,6 +267,7 @@ trap(frame)
|
|||||||
*/
|
*/
|
||||||
enable_intr();
|
enable_intr();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
eva = 0;
|
eva = 0;
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ trap(frame)
|
|||||||
printf(
|
printf(
|
||||||
"pid %ld (%s): trap %d with interrupts disabled\n",
|
"pid %ld (%s): trap %d with interrupts disabled\n",
|
||||||
(long)curproc->p_pid, curproc->p_comm, type);
|
(long)curproc->p_pid, curproc->p_comm, type);
|
||||||
else if (type != T_BPTFLT && type != T_TRCTRAP)
|
else if (type != T_BPTFLT && type != T_TRCTRAP) {
|
||||||
/*
|
/*
|
||||||
* XXX not quite right, since this may be for a
|
* XXX not quite right, since this may be for a
|
||||||
* multiple fault in user mode.
|
* multiple fault in user mode.
|
||||||
@ -267,6 +267,7 @@ trap(frame)
|
|||||||
*/
|
*/
|
||||||
enable_intr();
|
enable_intr();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
eva = 0;
|
eva = 0;
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ trap(frame)
|
|||||||
printf(
|
printf(
|
||||||
"pid %ld (%s): trap %d with interrupts disabled\n",
|
"pid %ld (%s): trap %d with interrupts disabled\n",
|
||||||
(long)curproc->p_pid, curproc->p_comm, type);
|
(long)curproc->p_pid, curproc->p_comm, type);
|
||||||
else if (type != T_BPTFLT && type != T_TRCTRAP)
|
else if (type != T_BPTFLT && type != T_TRCTRAP) {
|
||||||
/*
|
/*
|
||||||
* XXX not quite right, since this may be for a
|
* XXX not quite right, since this may be for a
|
||||||
* multiple fault in user mode.
|
* multiple fault in user mode.
|
||||||
@ -267,6 +267,7 @@ trap(frame)
|
|||||||
*/
|
*/
|
||||||
enable_intr();
|
enable_intr();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
eva = 0;
|
eva = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user