Re: Where is my debugging information?

From: Christian Jachmann <Jachmann_at_unitix.org>
Date: Tue, 15 Feb 2005 22:57:14 +0100
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_at_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



....BUT:


just found that on older systems e.g. 4.11  :-()

box#  grep '$FreeBSD' /usr/src/sys/i386/conf/NOTES
grep: /usr/src/sys/i386/conf/NOTES: No such file or directory
box# grep '$FreeBSD' /usr/src/sys/i386/conf/GENERIC 
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.63 2005/01/13 00:50:47 scottl Exp $

box# grep DEBUG /usr/src/sys/i386/conf/GENERIC 
#makeoptions    DEBUG=-g                #Build kernel with gdb(1) debug symbols
box# uname -a
FreeBSD box.thc 4.11-STABLE FreeBSD 4.11-STABLE #3: Mon Jan 24 22:37:38 CET 2005     jachmann_at_box.thc:/usr/obj/usr/src/sys/MY  i386
box# 

Jes, on 4.11 you got it.

but on current 5.3-STABLE ('supped' some hours ago)  ?

no, not at all...maybe 6.

you should use config -g  onto your kernelconfig file and build/install your kerneL

you may want to use your kernel.debug, a crashdump and kgdb to find the reason.


regards

--
Christian Jachmann
Received on Tue Feb 15 2005 - 20:57:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:28 UTC