From owner-freebsd-current@FreeBSD.ORG Tue Feb 15 23:45:56 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 2E40C16A4CE for ; Tue, 15 Feb 2005 23:45:56 +0000 (GMT) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id F27BF43D48 for ; Tue, 15 Feb 2005 23:45:55 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP (SSL) id IBA74465; Tue, 15 Feb 2005 15:45:55 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 646075D07; Tue, 15 Feb 2005 15:45:55 -0800 (PST) To: Christian Jachmann In-reply-to: Your message of "Tue, 15 Feb 2005 22:57:14 +0100." <20050215215714.GA26675@hurx.thc> Date: Tue, 15 Feb 2005 15:45:55 -0800 From: "Kevin Oberman" Message-Id: <20050215234555.646075D07@ptavv.es.net> 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 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 23:45:56 -0000 > Date: Tue, 15 Feb 2005 22:57:14 +0100 > From: Christian Jachmann > > 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 It's really, really still there. I just checked the CVS repository for RELENG5, but you need to try looking in the main NOTES file, /sys/conf/NOTES: # DEBUG happens to be magic. # The following is equivalent to 'config -g KERNELNAME' and creates # 'kernel.debug' compiled with -g debugging as well as a normal # 'kernel'. Use 'make install.debug' to install the debug kernel # but that isn't normally necessary as the debug symbols are not loaded # by the kernel and are not useful there anyway. # # KERNEL can be overridden so that you can change the default name of your # kernel. # # MODULES_OVERRIDE can be used to limit modules built to a specific list. # makeoptions CONF_CFLAGS=-fno-builtin #Don't allow use of memcmp, etc. #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634