From owner-freebsd-hackers Mon Aug 13 8:54:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from iona.dcs.gla.ac.uk (iona.dcs.gla.ac.uk [130.209.240.35]) by hub.freebsd.org (Postfix) with ESMTP id 8A86137B405 for ; Mon, 13 Aug 2001 08:54:24 -0700 (PDT) (envelope-from neugebar@dcs.gla.ac.uk) Received: from therese.dcs.gla.ac.uk ([130.209.241.134] helo=therese.dcs.gla.ac.uk.dcs.gla.ac.uk) by iona.dcs.gla.ac.uk with esmtp (Exim 3.13 #1) id 15WK2k-0004U8-00; Mon, 13 Aug 2001 16:54:19 +0100 Received: by therese.dcs.gla.ac.uk.dcs.gla.ac.uk (8.11.3/Dumb) id f7DFsH678319; Mon, 13 Aug 2001 16:54:17 +0100 (BST) To: volf@oasis.IAEhv.nl (Frank Volf) Cc: freebsd-hackers@freebsd.org Subject: Re: how to debug a kld module? References: <20010813142301.3A6D23E02@drawbridge.oasis.IAEhv.nl> From: Rolf Neugebauer Date: 13 Aug 2001 16:54:15 +0100 In-Reply-To: volf@oasis.IAEhv.nl's message of "Mon, 13 Aug 2001 16:23:01 +0200 (CEST)" Message-ID: Lines: 24 User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG volf@oasis.IAEhv.nl (Frank Volf) writes: > Hi, > > My system panics with a page fault in one of my kernel loadable modules. I > want to debug this, but I can't find a way to load that module and its > symbol table into gdb. > > The steps that I have taken are > > gdb -k /sys/compile/DRAWBRIDGE/kernel.debug vmcore.11 > > which gives me a normal kenel with debug symbols that I can debug? But, how > can I load the offending kld module symbol table as well? Or can I only > properly debug this, when I compile the module into the kernel? Try following the steps in the developers handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html In particular the section 11.6 Debugging Loadable Modules Using GDB: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x4290.html Rolf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message