From owner-freebsd-current Wed Oct 14 19:00:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA10600 for freebsd-current-outgoing; Wed, 14 Oct 1998 19:00:35 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA10552 for ; Wed, 14 Oct 1998 19:00:23 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.9.1/8.9.1/Spinner) with ESMTP id JAA08855; Thu, 15 Oct 1998 09:29:57 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199810150129.JAA08855@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Greg Lehey cc: Doug Rabson , Karl Pielorz , Edwin Culp , FreeBSD-current@FreeBSD.ORG Subject: Re: Make elf release In-reply-to: Your message of "Thu, 15 Oct 1998 10:54:50 +0930." <19981015105450.I586@freebie.lemis.com> Date: Thu, 15 Oct 1998 09:29:56 +0800 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey wrote: > On Wednesday, 14 October 1998 at 21:12:54 +0100, Doug Rabson wrote: > > On Wed, 14 Oct 1998, Peter Wemm wrote: > >> Karl Pielorz wrote: > >>> Hmmm.. Well if I'm right about not being able to debug LDK's with an ELF > >>> kernel, I have to keep my kernel a.out... An LKM I'm betaing has a few > >>> problems, which means it's gotta be debug(able)... > >> > >> Umm, it's the other way around.. DDB can't see a.out LKM's for debugging. > >> DDB *can* see both a.out and elf KLD modules. KLD modules are the first > >> time that DDB has worked with modular kernels. > >> > >> It's GDB that is the problem - it can't see KLD modules. Mind you, it > >> can't see LKM's either. > > > > It should be possible to debug both with GDB with judicious use of > > 'add-symbol-file' with the module filename and the load address (I believe > > that there is normally a fixed offset from the load address). I have a > > vague memory of writing something about this in the handbook. Maybe I > > was dreaming... > > What you describe is pretty much the way it works with LKMs today. > What I've understood is that KLDs will be different. This works the same with KLD as well, see my previous mail on the subject which included a demo. The major difference between LKM's and KLD's is that DDB works with KLD with full symbols. > Greg Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message