From owner-freebsd-current Tue Oct 13 18:52:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA14380 for freebsd-current-outgoing; Tue, 13 Oct 1998 18:52:50 -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 SAA14375 for ; Tue, 13 Oct 1998 18:52:46 -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 LAA25948; Wed, 14 Oct 1998 11:22:22 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id LAA28291; Wed, 14 Oct 1998 11:22:20 +0930 (CST) Message-ID: <19981014112220.A21983@freebie.lemis.com> Date: Wed, 14 Oct 1998 11:22:20 +0930 From: Greg Lehey To: Peter Wemm , Karl Pielorz Cc: Edwin Culp , FreeBSD-current@FreeBSD.ORG Subject: Re: Make elf release References: <3623548A.E4A9FE0F@tdx.co.uk> <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: <199810132359.HAA02821@spinner.netplex.com.au>; from Peter Wemm on Wed, Oct 14, 1998 at 07:59:23AM +0800 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 [Format autorecovered at freebie.lemis.com] On Wednesday, 14 October 1998 at 7:59:23 +0800, Peter Wemm wrote: > Karl Pielorz wrote: >> Edwin Culp wrote: >>>> I know that's one of the reasons why I've left my system running a.out kernels >>>> at the moment... (and I at least hope it's a good reason ;-) >>> >>> The wonderful part of it is that I haven't had anything to debug :-) What of >>> the folks running current/beta debug their kernels? The way to find the p roblems >>> is to have more people using it in its most complete form. IMO. >> >> 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. Does this mean that there's the potential to have symbol conflicts? > It's GDB that is the problem - it can't see KLD modules. Mind you, it > can't see LKM's either. That's not correct. Here's a backtrace through the Vinum LKM: (kgdb) bt #0 Debugger (msg=0xf5b8cfe0 "vinum debug") at ../../i386/i386/db_interface.c:317 #1 0xf5b8d2d6 in vinumioctl (dev=0x40001900, cmd=0xc008464b, data=0xf5b4aed0 "", flag=0x3, p=0xf5a2bbc0) at vinumioctl.c:107 #2 0xf016f44b in spec_ioctl (ap=0xf5b4ae0c) at ../../miscfs/specfs/spec_vnops.c:425 #3 0xf016ed29 in spec_vnoperate (ap=0xf5b4ae0c) at ../../miscfs/specfs/spec_vnops.c:129 #4 0xf01da0d9 in ufs_vnoperatespec (ap=0xf5b4ae0c) at ../../ufs/ufs/ufs_vnops.c:2303 Sure, there are some tricks needed to do this--see ftp://ftp.lemis.com/pub/vinum/.gdbinit for details. 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