Date: Thu, 15 Oct 1998 09:29:56 +0800 From: Peter Wemm <peter@netplex.com.au> To: Greg Lehey <grog@lemis.com> Cc: Doug Rabson <dfr@nlsystems.com>, Karl Pielorz <kpielorz@tdx.co.uk>, Edwin Culp <eculp@webwizard.org.mx>, FreeBSD-current@FreeBSD.ORG Subject: Re: Make elf release Message-ID: <199810150129.JAA08855@spinner.netplex.com.au> In-Reply-To: Your message of "Thu, 15 Oct 1998 10:54:50 %2B0930." <19981015105450.I586@freebie.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810150129.JAA08855>