From 099e4630c108c7c31797f1c2800801ac7fdf777c Mon Sep 17 00:00:00 2001 From: David Xu Date: Tue, 13 Jul 2004 22:51:03 +0000 Subject: If _libkse_debug is not zero, activate thread mode. --- lib/libpthread/thread/thr_init.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/libpthread/thread/thr_init.c') diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index d7c6296d1115..36e7e69c4712 100644 --- a/lib/libpthread/thread/thr_init.c +++ b/lib/libpthread/thread/thr_init.c @@ -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); } /* -- cgit v1.2.3