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:
parent
1a5333c37c
commit
b285782b29
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user