From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 11 22:52:03 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 9F69016A415 for ; Sat, 11 Nov 2006 22:52:03 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1288D43D6D for ; Sat, 11 Nov 2006 22:52:02 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 4199E2087; Sat, 11 Nov 2006 23:51:58 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 28C3B2085; Sat, 11 Nov 2006 23:51:58 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 1001) id 097EDB85E; Sat, 11 Nov 2006 23:51:58 +0100 (CET) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: trowa-4 References: <571883.4868.qm@web72011.mail.tp2.yahoo.com> Date: Sat, 11 Nov 2006 23:51:57 +0100 In-Reply-To: <571883.4868.qm@web72011.mail.tp2.yahoo.com> (trowa-4@yahoo.com.tw's message of "Sun, 12 Nov 2006 01:24:30 +0800 (CST)") Message-ID: <86irhlfvg2.fsf@dwp.des.no> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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: Sat, 11 Nov 2006 22:52:03 -0000 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. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no