Date: Tue, 13 Oct 1998 17:56:09 -0700 From: John Polstra <jdp@polstra.com> To: peter@netplex.com.au Cc: current@FreeBSD.ORG Subject: Re: Make elf release Message-ID: <199810140056.RAA20027@austin.polstra.com> In-Reply-To: <199810132359.HAA02821@spinner.netplex.com.au> References: <199810132359.HAA02821@spinner.netplex.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <199810132359.HAA02821@spinner.netplex.com.au>, Peter Wemm <peter@netplex.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810140056.RAA20027>