From owner-freebsd-hackers Sun May 16 21:34:37 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id AEA24150DE; Sun, 16 May 1999 21:34:29 -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 OAA24095; Mon, 17 May 1999 14:04:25 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id OAA97739; Mon, 17 May 1999 14:04:23 +0930 (CST) Date: Mon, 17 May 1999 14:04:23 +0930 From: Greg Lehey To: Mike Heffner Cc: FreeBSD Hackers Subject: Re: Debugging Message-ID: <19990517140423.Y89091@freebie.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Mike Heffner on Sun, May 16, 1999 at 11:03:11PM -0500 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF 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-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [moved to -hackers] On Sunday, 16 May 1999 at 23:03:11 -0500, Mike Heffner wrote: > > I would like to trace the source of a panic during boot time. How do I compile > the boot loader code in DEBUG mode? I tried defining DEBUG with make, but it > didn't work. What's the _right_ way to compile specific code with debug mode > set. If there's a url for this, please let me know. This is probably a better candidate for -hackers, so I've moved it there. You have a basic problem that you can't take a dump until you have a dump device. If you panic before that, you're limited to ddb or serial gdb. There's some stuff in the online handbook about how to set up serial gdb, and in LINT about how to set up ddb. Note that the flags for the serial device have changed in *some* versions of FreeBSD, so check your LINT file for the correct flags. 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-hackers" in the body of the message