Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Apr 1999 17:54:44 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Mark Newton <newton@internode.com.au>
Cc:        grog@lemis.com (Greg Lehey), archie@whistle.com, ChrisMic@clientlogic.com, gjb@comkey.com.au, questions@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: Debug kernel by default (was: System size with -g) 
Message-ID:  <199904070054.RAA01436@dingo.cdrom.com>
In-Reply-To: Your message of "Wed, 07 Apr 1999 10:18:30 %2B0930." <199904070048.KAA16506@gizmo.internode.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Greg Lehey wrote:
> 
>  > You don't need to install the kernel.debug on the root file system.
>  > The obvious place to put it is in /var/crash.
>  
> Not so sure about that:  If you have half a dozen crash dumps in 
> /var/crash all from different kernels, how do you work out which
> one matches the debug kernel you happen to have there too?
> 
> Pity we can't trust the system's state at crash time.  It should
> be possible to boot from a debug kernel in / without reading the
> symbol table, and copy its symbol table into the crash dump at the
> time the system panics.  Core dumps could then be, for all intents and
> purposes, self-contained.
> 
> Perhaps savecore could do that.

Er, it does more or less that already.

When it recovers the core image, it also copies the kernel file 
matching it.  Even if the running kernel didn't have symbols loaded, 
this gets you the symbols out of the kernel file.

It still doesn't quite work right for loadable modules, but someone 
will fix this someday, we hope.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904070054.RAA01436>