From owner-freebsd-questions Fri Mar 2 8:22:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id 1258737B71B for ; Fri, 2 Mar 2001 08:22:11 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.9.3) with SMTP id f22GKJi24930; Fri, 2 Mar 2001 11:20:21 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <008501c0a335$24ab3c90$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: , References: <200103021549.f22FnPr77908@d.tracker> Subject: Re: how to make debug kernel with 4.2 Date: Fri, 2 Mar 2001 11:23:34 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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. 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message