If _libkse_debug is not zero, activate thread mode.

This commit is contained in:
David Xu 2004-07-13 22:51:03 +00:00
parent 566382df0a
commit 099e4630c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132121
2 changed files with 12 additions and 0 deletions

View File

@ -310,6 +310,12 @@ _libpthread_init(struct pthread *curthread)
_thr_signal_init();
_kse_critical_leave(&_thr_initial->tcb->tcb_tmbx);
/*
* activate threaded mode as soon as possible if we are
* being debugged
*/
if (_libkse_debug)
_kse_setthreaded(1);
}
/*

View File

@ -310,6 +310,12 @@ _libpthread_init(struct pthread *curthread)
_thr_signal_init();
_kse_critical_leave(&_thr_initial->tcb->tcb_tmbx);
/*
* activate threaded mode as soon as possible if we are
* being debugged
*/
if (_libkse_debug)
_kse_setthreaded(1);
}
/*