From owner-freebsd-current Tue Oct 13 17:57:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA05487 for freebsd-current-outgoing; Tue, 13 Oct 1998 17:57:16 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA05445 for ; Tue, 13 Oct 1998 17:57:04 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.9.1/8.9.1) with ESMTP id RAA20027; Tue, 13 Oct 1998 17:56:09 -0700 (PDT) (envelope-from jdp) Message-Id: <199810140056.RAA20027@austin.polstra.com> To: peter@netplex.com.au Subject: Re: Make elf release In-Reply-To: <199810132359.HAA02821@spinner.netplex.com.au> References: <199810132359.HAA02821@spinner.netplex.com.au> Organization: Polstra & Co., Seattle, WA Cc: current@FreeBSD.ORG Date: Tue, 13 Oct 1998 17:56:09 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199810132359.HAA02821@spinner.netplex.com.au>, Peter Wemm wrote: > It's GDB that is the problem - it can't see KLD modules. Mind you, it > can't see LKM's either. Just to clarify -- GDB can see them if you tell it where they are. For example, if I wanted to debug the star saver, I'd first run modstat to find out where it's loaded: Type Id Off Loadaddr Size Info Rev Module Name MISC 0 0 f2fe0000 0008 f2fe1000 1 star_saver_mod Then in GDB, I'd say: add-symbol-file /lkm/star_saver_mod.o 0xf2fe0020 Note, I had to add 0x20 to the load address to account for the size of the a.out header. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message