Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2004 13:04:17 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Mark Kettenis <kettenis@chello.nl>
Cc:        gdb-patches@sources.redhat.com
Subject:   Re: [PATCH/RFC] *BSD kernel debugging
Message-ID:  <20040517200417.GA67285@ns1.xcllnt.net>
In-Reply-To: <200405171132.i4HBW0h5012696@elgar.kettenis.dyndns.org>
References:  <200405171132.i4HBW0h5012696@elgar.kettenis.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 17, 2004 at 01:32:00PM +0200, Mark Kettenis wrote:
> I've recently implemented support for kvm(3)-based debugging that
> works for all three BSD's.  The interface is fairly simple, just start
> GDB on a kernel binary, i.e.

*snip*

> All that's needed is a bit of new code (bsd-kvm.[ch]) and a support
> function in the appropriate *-nat.c file; because it is built on top
> of kvm(3) this is native-only.  I've added a preliminary patch with
> some sample code.
> 
> If there are no objections I'll check this in in a week or so.

I've been working on a different scheme for FreeBSD that supports kernel
threads and kernel modules and also works on non-i386 and non-amd64
systems without any gdb changes (at least, that's the intend -- I'm not
far enough in the development to have a working prototype of all features).
Anyway, it uses the remote protocol to establish an IPC pipe between gdb
and some front-end that knows about the quirks of the kernel and its core
files and isn't an inherently native solution.

I cannot prevent you from committing this, but if it doesn't address
the items mentioned above, it may not be used on FreeBSD.  Unless I'm
being relieved of gdb duties of course :-)

FYI,

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net



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