Subject: Re: Building a custom kernel -- trying to debug
To: Jan Danielsson <jan.m.danielsson@gmail.com>
From: Adam Hamsik <haaaad@gmail.com>
List: tech-kern
Date: 12/24/2007 00:16:30
On Dec,Monday 24 2007, at 12:07 AM, Jan Danielsson wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hello,
>
>   I finally have some time to debug the PR
> http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=36963.
>
>   However, I'm missing symbols in my kernel, making the process near
> impossible. I have:
>
> makeoptions DEBUG="-g"
>
>   ...in my config-file. But when I run "file netbsd" on the freshly
> built kernel, it is "stripped". To remedy that, I added:
>
> MDSET_NOSTRIP=1
>
>   ...to distrib/amd64/instkernel/Makefile, but it still seems to be
> creating stripped kernels. What am I missing?
>

AFAIK there is netbsd and netbsd.gdb file in compile directory you can  
use netbsd.gdb to load symbols into the gdb when you debug your cash  
dump. kernel with all symbols is really huge :).

> - --
> Kind regards,
> Jan Danielsson
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (NetBSD)
>
> iD8DBQFHbuovuPlHKFfKXTYRCnfhAJ9D63sAukc4BuBWZsh3B2eWHSAofgCgkjqQ
> a+m9cQuRzItYDmausqnqu7E=
> =uXK4
> -----END PGP SIGNATURE-----

Regards

Adam.