Print a backtrace in case we tsleep from inside of DDB.

This commit is contained in:
Alfred Perlstein 2003-02-14 12:44:07 +00:00
parent 715430f81d
commit aae87a3681
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110858

View file

@ -477,6 +477,7 @@ mi_switch(void)
*/
if (db_active) {
mtx_unlock_spin(&sched_lock);
db_print_backtrace();
db_error("Context switches not allowed in the debugger.");
}
#endif