From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 9 00:46:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BD8F16A4CE for ; Thu, 9 Sep 2004 00:46:15 +0000 (GMT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9094043D1F for ; Thu, 9 Sep 2004 00:46:14 +0000 (GMT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 0F5DA2BDB8 for ; Thu, 9 Sep 2004 10:46:12 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 1E2F4511FA; Thu, 9 Sep 2004 10:16:10 +0930 (CST) Date: Thu, 9 Sep 2004 10:16:10 +0930 From: Greg 'groggy' Lehey To: Jerry Toung Message-ID: <20040909004610.GQ49572@wantadilla.lemis.com> References: <200409081101.33018.jtoung@arc.nasa.gov> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="R4+lwT0Y15rLnKR0" Content-Disposition: inline In-Reply-To: <200409081101.33018.jtoung@arc.nasa.gov> User-Agent: Mutt/1.4.1i Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: FreeBSD Hackers Subject: Re: debugging kld panic X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 00:46:15 -0000 --R4+lwT0Y15rLnKR0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wednesday, 8 September 2004 at 11:01:33 -0700, Jerry Toung wrote: > Good morning Greg, > I am trying to debug a kld that I wrote that keeps causing panics. I already > did a search on the mailing list, and the only useful info I got was an email > you replied to in 1999, "Re: debugging a panic in a kld-ed kernel". You > refered to .gdbinit.vinum.paths but I couldn't find it. I am running > 6.0current, then you gave out this: But not for 6-CURRENT. The kld symbols should get loaded automatically, so you don't need to do anything. You should see something like: Reading symbols from /usr/obj/usr/src/sys/ZAPHOD/modules/usr/src/sys/modules/dcons/dcons.ko.debug...done. Loaded symbols for /usr/obj/usr/src/sys/ZAPHOD/modules/usr/src/sys/modules/dcons/dcons.ko.debug Reading symbols from /usr/obj/usr/src/sys/ZAPHOD/modules/usr/src/sys/modules/dcons_crom/dcons_crom.ko.debug...done. Loaded symbols for /usr/obj/usr/src/sys/ZAPHOD/modules/usr/src/sys/modules/dcons_crom/dcons_crom.ko.debug This is all you need. > I copied and past it in a file and made it executable, but no > success. Could you be kind enough and let me know what to do to > debug my kld. You can reply to hackers since I am also on that > list. I am sure this will benefit more than one person. This should be generally known. There's also a man page gdb(4) which explains this and more. Greg -- Finger grog@lemis.com for PGP public key. See complete headers for address and phone numbers. --R4+lwT0Y15rLnKR0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQFBP6fSIubykFB6QiMRAt6SAJkBYsJErK+CTzCVvPQHL+BVkfZUzACeNV5C FyNAZOZe5zgPfm2/zWv0FOQ= =BVOx -----END PGP SIGNATURE----- --R4+lwT0Y15rLnKR0--