From owner-cvs-src@FreeBSD.ORG Tue Jul 13 22:49:59 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C91316A4CE; Tue, 13 Jul 2004 22:49:59 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3041F43D31; Tue, 13 Jul 2004 22:49:59 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6DMnwTt079992; Tue, 13 Jul 2004 22:49:58 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6DMnwNe079991; Tue, 13 Jul 2004 22:49:58 GMT (envelope-from davidxu) Message-Id: <200407132249.i6DMnwNe079991@repoman.freebsd.org> From: David Xu Date: Tue, 13 Jul 2004 22:49:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libpthread/thread thr_exit.c thr_kern.c thr_priority_queue.c thr_private.h thr_spec.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2004 22:49:59 -0000 davidxu 2004-07-13 22:49:58 UTC FreeBSD src repository Modified files: lib/libpthread/thread thr_exit.c thr_kern.c thr_priority_queue.c thr_private.h thr_spec.c Log: Add code to support thread debugging. 1. Add global varible _libkse_debug, debugger uses the varible to identify libpthread. when the varible is written to non-zero by debugger, libpthread will take some special action at context switch time, it will check TMDF_DOTRUNUSER flags, if a thread has the flags set by debugger, it won't be scheduled, when a thread leaves KSE critical region, thread checks the flag, if it was set, the thread relinquish CPU. 2. Add pq_first_debug to select a thread allowd to run by debugger. 3. Some names prefixed with _thr are renamed to _thread prefix. which is allowed to run by debugger. Revision Changes Path 1.36 +3 -3 src/lib/libpthread/thread/thr_exit.c 1.107 +54 -8 src/lib/libpthread/thread/thr_kern.c 1.15 +51 -0 src/lib/libpthread/thread/thr_priority_queue.c 1.115 +24 -12 src/lib/libpthread/thread/thr_private.h 1.22 +14 -21 src/lib/libpthread/thread/thr_spec.c