From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 20 22:10:02 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C3B016A407 for ; Mon, 20 Nov 2006 22:10:02 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6738743D60 for ; Mon, 20 Nov 2006 22:09:43 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp1-g19.free.fr (Postfix) with ESMTP id 7160868BE6; Mon, 20 Nov 2006 23:10:00 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 310B09B46E; Mon, 20 Nov 2006 22:10:27 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 0E0E5405B; Mon, 20 Nov 2006 23:10:27 +0100 (CET) Date: Mon, 20 Nov 2006 23:10:26 +0100 From: Jeremie Le Hen To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20061120221026.GC20405@obiwan.tataz.chchile.org> References: <571883.4868.qm@web72011.mail.tp2.yahoo.com> <86irhlfvg2.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86irhlfvg2.fsf@dwp.des.no> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: trowa-4 , freebsd-hackers@freebsd.org Subject: Re: Process Debugging questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2006 22:10:02 -0000 Hi Dag-Erling, On Sat, Nov 11, 2006 at 11:51:57PM +0100, Dag-Erling Smørgrav wrote: > trowa-4 writes: > > FreeBSD provides the ptrace system call for controlling and > > debugging the execution of a process. > > > > An alternative to the ptrace system call is the /proc filesystem. > > > > The functionality provided by the /proc filesystem is the same as > > that provided by ptrace; if differs only in its interface. > > > > Are there having a better method or other method? > > They both suck, for different reasons. In theory, ptrace sucks less > than proc, but it lacks some of proc's functionality, and fixing that > is very hard. Would you take a little time to tell what ptrace lacks and possibly why it is so hard, please ? Thank you. -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >