Skip site navigation (1)Skip section navigation (2)
Date:      23 Oct 2001 17:12:10 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        <arch@FreeBSD.ORG>
Subject:   Re: Debugging interfaces
Message-ID:  <xzp8ze22xx1.fsf@flood.ping.uio.no>
In-Reply-To: <20011023235726.M63643-100000@delplex.bde.org>
References:  <20011023235726.M63643-100000@delplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans <bde@zeta.org.au> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp8ze22xx1.fsf>