From owner-freebsd-current Wed Oct 14 18:26:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA05683 for freebsd-current-outgoing; Wed, 14 Oct 1998 18:26:32 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA05634 for ; Wed, 14 Oct 1998 18:26:26 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id KAA03232; Thu, 15 Oct 1998 10:54:54 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id KAA01892; Thu, 15 Oct 1998 10:54:51 +0930 (CST) Message-ID: <19981015105450.I586@freebie.lemis.com> Date: Thu, 15 Oct 1998 10:54:50 +0930 From: Greg Lehey To: Doug Rabson , Peter Wemm Cc: Karl Pielorz , Edwin Culp , FreeBSD-current@FreeBSD.ORG Subject: Re: Make elf release References: <199810132359.HAA02821@spinner.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Doug Rabson on Wed, Oct 14, 1998 at 09:12:54PM +0100 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message