Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2001 01:53:37 -0500
From:      David Banning <david@www3.pacific-pages.com>
To:        Matthew Emmerton <matt@gsicomp.on.ca>
Cc:        questions@FreeBSD.ORG
Subject:   Re: how to make debug kernel with 4.2
Message-ID:  <20010303015337.A700@www3.pacific-pages.com>
In-Reply-To: <008501c0a335$24ab3c90$1200a8c0@gsicomp.on.ca>; from matt@gsicomp.on.ca on Fri, Mar 02, 2001 at 11:23:34AM -0500
References:  <200103021549.f22FnPr77908@d.tracker> <008501c0a335$24ab3c90$1200a8c0@gsicomp.on.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, Mar 02, 2001 at 11:23:34AM -0500, Matthew Emmerton wrote:
> > I am trying to make a debug kernel with 4.2 Stable.
> > I went to /usr/src/sys/i386/conf and typed
> > # /usr/sbin/config -g MYKERNEL
> > and then went to /usr/src and did it the 4.2 way;
> > # make buildkernel KERNCONF=MYKERNEL
> > # make installkernel KERNCONF=MYKERNEL
> >
> > Problem is, it doesn't like a debug kernel.  I am told it should be
> > around 10 meg size and it's only normal size.
> 
> The *installed* kernel will be stripped.  In the compile directory you'll
> find a kernel.debug which will be about 10MB.

I did not find it there - or anywhere.
I did a "periodic weekly", then;

$ locate kernel | grep debug  

gave only;

/usr/ports/emulators/wine/work/wine-20010112/dlls/kernel/debugger.c
/usr/ports/emulators/wine/work/wine-20010112/dlls/kernel/debugger.o
/usr/ports/emulators/wine/work/wine-20010112/dlls/kernel/libwindebug.so
/usr/ports/emulators/wine/work/wine-20010112/dlls/kernel/windebug.c
/usr/ports/emulators/wine/work/wine-20010112/dlls/kernel/windebug.o
/usr/ports/emulators/wine/work/wine-20010112/dlls/kernel/windebug.spec
/usr/ports/emulators/wine/work/wine-20010112/dlls/kernel/windebug.spec.c
/usr/ports/emulators/wine/work/wine-20010112/dlls/kernel/windebug.spec.o
/usr/share/doc/en_US.ISO_8859-1/books/handbook/kerneldebug.html
/usr/share/doc/ja/books/handbook/kerneldebug.html

It IS building a new kernel.  It's just not building the debug version.

Any ideas where to look for the problem?

> 
> When you need to debug something (like a kernel crash), you do the
> following:
> 
> gdb -k
> symbol-file /usr/src/compile/MYKERNEL/kernel.debug
> 
> And the symbols for the stripped-but-installed kernel will magically appear.
> 
> You can find more details about this in the handbook, Chapter 23 (kernel
> debugging)
> 
> --
> Matt Emmerton
> 
> 

-- 
"Of course power tools and alcohol don't mix.  Everyone knows power
tools aren't soluble in alcohol ..."
		-- Crazy Nigel

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?20010303015337.A700>