From owner-freebsd-arch Tue Oct 23 8:12:14 2001 Delivered-To: freebsd-arch@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id B615637B401 for ; Tue, 23 Oct 2001 08:12:12 -0700 (PDT) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 71CDE14C2E; Tue, 23 Oct 2001 17:12:11 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Bruce Evans Cc: Subject: Re: Debugging interfaces References: <20011023235726.M63643-100000@delplex.bde.org> From: Dag-Erling Smorgrav Date: 23 Oct 2001 17:12:10 +0200 In-Reply-To: <20011023235726.M63643-100000@delplex.bde.org> Message-ID: Lines: 22 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bruce Evans writes: > On 23 Oct 2001, Dag-Erling Smorgrav wrote: > > We currently have three distinct debugging interfaces in the system: > > ktrace(2), ptrace(2) and procfs(5). I think you'll all agree that > > that's two too many. I propose to remove at least one of them. > Well, one too many. It might be worth separating gdb-type debugging > from program-tracing type debugging. Gdb uses ptrace() and works just fine without procfs. I'm not exactly sure *how* it works though. > Don't forget strace (in ports). It's like truss but is much more > complete. It seems to use mainly the pioctl interface :-). Someone > once said that (Linux-only at the time) strace only needed a couple > of minor extensions to ptrace for it to be ported to FreeBSD. Thanks. I'll look at strace and see what needs to be done to keep it working. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message