From owner-freebsd-hackers@FreeBSD.ORG Mon May 17 13:45:43 2004 Return-Path: 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 79D0116A4CE for ; Mon, 17 May 2004 13:45:43 -0700 (PDT) Received: from walton.kettenis.dyndns.org (e77109.upc-e.chello.nl [213.93.77.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25B6543D45 for ; Mon, 17 May 2004 13:45:42 -0700 (PDT) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2])i4HKje5V003317; Mon, 17 May 2004 22:45:40 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) i4HKjeYR014109; Mon, 17 May 2004 22:45:40 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost)i4HKjd4k014106; Mon, 17 May 2004 22:45:39 +0200 (CEST) Date: Mon, 17 May 2004 22:45:39 +0200 (CEST) Message-Id: <200405172045.i4HKjd4k014106@elgar.kettenis.dyndns.org> From: Mark Kettenis To: marcel@xcllnt.net In-reply-to: <20040517200417.GA67285@ns1.xcllnt.net> (message from Marcel Moolenaar on Mon, 17 May 2004 13:04:17 -0700) References: <200405171132.i4HBW0h5012696@elgar.kettenis.dyndns.org> <20040517200417.GA67285@ns1.xcllnt.net> X-Mailman-Approved-At: Tue, 18 May 2004 05:03:33 -0700 cc: freebsd-hackers@freebsd.org cc: tech-toolchain@netbsd.org cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH/RFC] *BSD kernel debugging X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2004 20:45:43 -0000 Date: Mon, 17 May 2004 13:04:17 -0700 From: Marcel Moolenaar > 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. This makes a lot of sense: a gdbserver-like stub that's part of the kernel en gets build as part of "make buildworld". 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 :-) Let's see. My kvm stuff would still serve a purpose for older releases. Mark