From owner-freebsd-current@FreeBSD.ORG Wed Feb 16 20:21:21 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BA3E16A4CE for ; Wed, 16 Feb 2005 20:21:21 +0000 (GMT) Received: from smtp814.mail.sc5.yahoo.com (smtp814.mail.sc5.yahoo.com [66.163.170.84]) by mx1.FreeBSD.org (Postfix) with SMTP id 4FEB743D41 for ; Wed, 16 Feb 2005 20:21:21 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.177.173 with login) by smtp814.mail.sc5.yahoo.com with SMTP; 16 Feb 2005 20:21:20 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 2D2C36204; Wed, 16 Feb 2005 14:21:19 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 62443-19-2; Wed, 16 Feb 2005 14:21:17 -0600 (CST) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 5D1306160; Wed, 16 Feb 2005 14:21:17 -0600 (CST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.1/8.13.1) with ESMTP id j1GKLG9V086202; Wed, 16 Feb 2005 14:21:16 -0600 (CST) (envelope-from noackjr@alumni.rice.edu) Message-ID: <4213AB3C.4040001@alumni.rice.edu> Date: Wed, 16 Feb 2005 14:21:16 -0600 From: Jon Noack User-Agent: Mozilla Thunderbird 1.0 (X11/20050202) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christian Jachmann References: <20050213174915.GA97313@hurx.thc> <20050213224653.317675D07@ptavv.es.net> <20050215215714.GA26675@hurx.thc> In-Reply-To: <20050215215714.GA26675@hurx.thc> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at noacks.org cc: freebsd-current@freebsd.org cc: Emil Mikulic Subject: Re: Where is my debugging information? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 20:21:21 -0000 On 02/15/05 15:57, Christian Jachmann wrote: > On Sun, Feb 13, 2005 at 02:46:53PM -0800, Kevin Oberman wrote: >>>On Sat, Feb 12, 2005 at 01:35:55PM +1100, Emil Mikulic wrote: >>>>All my recent kernels panic upon loading pf rules. I worked out how to >>>>get a dump out of the kernel, but now kgdb is saying "no debugging >>>>symbols found" >>>> >>>>My kernel config contains >>>>makeoptions DEBUG=-g >>>> >>>>It was built with the standard "make kernel KERNCONF=WHATEVER" >>>> >>>>What am I doing wrong? >>> >>>seems that this isn't interpreted anymore.. >>> >>>try building the kernel using: >>> >>> config [-gp] [-d destdir] SYSTEM_NAME >> >>No. > > Hmm > >>makeoptions DEBUG=-g still works fine. It's in NOTES as of about an > > lets see: > > hurx# uname -a > FreeBSD hurx.thc 5.3-STABLE FreeBSD 5.3-STABLE #3: Sun Feb 13 18:45:23 CET 2005 jachmann@hurx.thc:/usr/src/sys/i386/compile/MY i386 > > hurx# grep '$FreeBSD' /usr/src/sys/i386/conf/NOTES > # $FreeBSD: src/sys/i386/conf/NOTES,v 1.1168.2.2 2004/10/24 17:42:08 scottl Exp $ > > ...no, nothing in there > > hurx# grep DEBUG /usr/src/sys/i386/conf/NOTES > options NPX_DEBUG # enable npx debugging > options VESA_DEBUG > # ACPI_DEBUG enables the use of the debug.acpi.level and debug.acpi.layer > # Intel ACPICA code. (Note that the Intel code must also have USE_DEBUGGER > options ACPI_DEBUG > # DRM_DEBUG: include debug printfs, very slow > options DRM_DEBUG > options WLDEBUG # enables verbose debugging output > options TWA_DEBUG # 0-10; 10 prints the most messages. > options SAFE_DEBUG # enable debugging support: hw.safe.debug > options SX_DEBUG > options DEBUG_SVR4 # enable verbose debugging > options PECOFF_DEBUG > options KBDIO_DEBUG=2 > options PSM_DEBUG=1 > hurx# > > no makepotions DEBUG in my 5.3-STABLE NOTES As mentioned elsewhere in the thread, it's in /sys/conf/NOTES. Starting with 5.0, the old architecture dependent LINT file has been split in architecture independent (/sys/conf/NOTES) and dependent (/sys/${ARCH}/conf/NOTES) files. Thus, you'll find it in /sys/${ARCH}/conf/LINT on 4.x. Here's the commit that renamed LINT to NOTES from ~4.5 years ago: http://docs.freebsd.org/cgi/mid.cgi?200006132228.PAA97611 Here's the commit that split NOTES into architecture independent/dependent files from ~3 years ago: http://docs.freebsd.org/cgi/mid.cgi?200204031809.g33I9Hj41673 Jon