Release the sched_lock before bombing out in mi_switch() via db_error().

This makes things slightly easier if you call a function that calls
mi_switch() as it keeps the locking before and after closer.
This commit is contained in:
John Baldwin 2001-08-21 23:10:37 +00:00
parent 1a5333c37c
commit b285782b29

View File

@ -672,8 +672,10 @@ mi_switch()
/*
* Don't perform context switches from the debugger.
*/
if (db_active)
if (db_active) {
mtx_unlock_spin(&sched_lock);
db_error("Context switches not allowed in the debugger.");
}
#endif
#if 0