From owner-p4-projects@FreeBSD.ORG Tue Jul 20 05:55:30 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F30FA16A4D0; Tue, 20 Jul 2004 05:55:29 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C953016A4CE for ; Tue, 20 Jul 2004 05:55:29 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C356543D39 for ; Tue, 20 Jul 2004 05:55:29 +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 i6K5tTVD081632 for ; Tue, 20 Jul 2004 05:55:29 GMT (envelope-from davidxu@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6K5tT4V081629 for perforce@freebsd.org; Tue, 20 Jul 2004 05:55:29 GMT (envelope-from davidxu@freebsd.org) Date: Tue, 20 Jul 2004 05:55:29 GMT Message-Id: <200407200555.i6K5tT4V081629@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to davidxu@freebsd.org using -f From: David Xu To: Perforce Change Reviews Subject: PERFORCE change 57761 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2004 05:55:30 -0000 http://perforce.freebsd.org/chv.cgi?CH=57761 Change 57761 by davidxu@davidxu_celeron on 2004/07/20 05:55:12 If step > 1, turn on TMDF_NOUPCALL to hard bind the thread, debugger should know what it is doing. Affected files ... .. //depot/projects/davidxu_ksedbg/src/lib/libthread_db/pthread/pthread_db.c#11 edit Differences ... ==== //depot/projects/davidxu_ksedbg/src/lib/libthread_db/pthread/pthread_db.c#11 (text+ko) ==== @@ -935,6 +935,12 @@ /* Clear or set single step flag in thread mailbox */ tmp = step ? TMDF_SSTEP : 0; + /* + * Debug not only wants to step the thread, but also wants to + * single step it. + */ + if (step > 1) + tmp |= TMDF_NOUPCALL; ret = ps_pwrite(ta->ph, tcb_addr + offsetof(struct tcb, tcb_tmbx.tm_dflags), &tmp, sizeof(tmp)); if (ret != 0)