Subject: Re: debugging symbols in kernels
To: Chris Ross <cross+netbsd@distal.com>
From: Adam Hamsik <haaaad@gmail.com>
List: current-users
Date: 10/02/2007 08:58:58
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Oct 2, 2007, at 6:33 AM, Chris Ross wrote:

>
>   I *know* I should know the answer to this, or be able to easily  
> figure it out on my own, but it wasn't obvious in my brief looking  
> through man pages and kernel Makefile's.  Many of the custom  
> kernels I build automatically build netbsd.gdb files, which have  
> all of the debugging symbols in it, and are useful when looking at  
> crash dumps.  But, I see that the GENERIC kernels don't  
> automatically build netbsd.gdb binaries.
>
>   Is there some extra step, or piece in the kernel config file,  
> that needs to be there to make a netbsd.gdb be produced?  Is the  
> netbsd.gdb the necessary thing to gdb a crash dump image, for all  
> architectures?

You should have netbsd.gdb for crash dump analyze, because without it  
yuo will see only addresses :D and thats not much readable.

You have to enable makeoptions	DEBUG="-g", this should be enough.
>   Thanks...  Much appreciate any pointers.
>
>              - Chris
>

Regards
- -----------------------------------------
Adam Hamsik
jabber: haad@jabber.org
icq: 249727910

Proud NetBSD user.

We program to have fun.
Even when we program for money, we want to have fun as well.
~ Yukihiro Matsumoto




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHAewylIxPgX3Go0MRAonOAKDhpj2zh2dAumJzMS5Pe6PJ3JTI4gCg5P/K
VOZjZicW3uimWjeKgBL9j5E=
=2y0k
-----END PGP SIGNATURE-----