From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 18 06:25:11 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A34A37B401 for ; Fri, 18 Jul 2003 06:25:11 -0700 (PDT) Received: from bsdone.bsdwins.com (www.bsdwins.com [192.58.184.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id B328D43F85 for ; Fri, 18 Jul 2003 06:25:10 -0700 (PDT) (envelope-from jwd@bsdwins.com) Received: from bsdone.bsdwins.com (localhost [127.0.0.1]) by bsdone.bsdwins.com (8.12.9/8.12.9) with ESMTP id h6IDO5Vr060174; Fri, 18 Jul 2003 09:24:05 -0400 (EDT) (envelope-from jwd@www.bsdwins.com) Received: (from jwd@localhost) by bsdone.bsdwins.com (8.12.9/8.12.9/Submit) id h6IDO4cY060173; Fri, 18 Jul 2003 09:24:04 -0400 (EDT) Date: Fri, 18 Jul 2003 09:24:04 -0400 From: John To: Julian Elischer Message-ID: <20030718132404.GA60116@BSDWins.Com> References: <3F17677C.4090200@wooten.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org Subject: Re: ptrace & threads X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2003 13:25:11 -0000 ----- Julian Elischer's Original Message ----- > It is teh nextthing to look at.. > The ptrace interface doesn't extend to coverthreads at all. > We willneed to design somewhole new system.. > One posibility is the benedict arnold thread(*), that > talks with the debugger and controlls teh other threads.. Well, hoping not to create a NIH discussion, but OS/2 had/has a nice interface for thread debugging. Used it years ago as a model for setting up an environment on the mainframe (vm). One thing to remember, a failed thread on one cpu has no effect on any threads running on other physicals. You literally need a way to control how many threads can run in parallel, how many physical cpus they can use, and in some circumstances, logicals. -John