From owner-freebsd-questions Thu Mar 9 20: 6:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 726DF37B804 for ; Thu, 9 Mar 2000 20:06:03 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id OAA01450; Fri, 10 Mar 2000 14:33:07 +1030 (CST) Date: Fri, 10 Mar 2000 14:33:07 +1030 From: Greg Lehey To: "Fernando P. Schapachnik" Cc: Ben Smithurst , fernando@cursosvirtuales.com.ar, freebsd-questions@FreeBSD.ORG Subject: Re: Debugging kernel Message-ID: <20000310143306.A1286@freebie.lemis.com> References: <20000309165255.P62624@strontium.scientia.demon.co.uk> <200003092225.TAA00381@localhost.schapachnik.com.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0pre2i In-Reply-To: <200003092225.TAA00381@localhost.schapachnik.com.ar> WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday, 9 March 2000 at 19:25:47 -0300, Fernando P. Schapachnik wrote: > En un mensaje anterior Ben Smithurst escribió: >> config -g FOO >> cd ../../compile/FOO >> make depend >> make >> cp kernel kernel.debug >> strip -g kernel >> make install >> >> Doesn't the FAQ say this? Anyway, then you can "make install" to get the > > No it doesn´t. It says that make after config -g will produce both > kernels. I´ll send a PR about this as soon as I get it to work. Don't bother with the PR. It's fixed in -CURRENT, which has four install targets: install install the stripped version of the kernel install.debug install the debug version of the kernel reinstall install the stripped version of the kernel reinstall.debug install the debug version of the kernel The 'reinstall' targets don't overwrite /kernel.old. They're useful when you know that the current kernel is toast. > [103]Recabarren:/var/crash>l > total 78892 > drwxr-xr-x 2 root wheel 512 9 mar 19:19 ./ > drwxr-xr-x 20 root wheel 512 7 mar 23:05 ../ > -rw-r--r-- 1 root wheel 2 9 mar 19:15 bounds > -rw-r--r-- 1 root wheel 2284153 9 mar 19:15 kernel.2 > -rwxr-xr-x 1 root wheel 11323875 9 mar 16:29 kernel.debug* > -rw-r--r-- 1 root wheel 729 9 mar 19:19 typescript > -rw------- 1 root wheel 67108864 9 mar 19:15 vmcore.2 > [104]Recabarren:/var/crash>gdb -k > GNU gdb 4.18 > Copyright 1998 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-unknown-freebsd". > (kgdb) exec-file kernel.2 > (kgdb) core-file vmcore.2 > kernel symbol `IdlePTD' not found. > (kgdb) where > No stack. > (kgdb) symbol-file kernel.debug > Reading symbols from kernel.debug...done. > (kgdb) where > No stack. > > Any clues? This looks like a mismatch between your installation and your gdb. Have you done a 'make world'? You could also try: # gdb -k kernel.2 vmcore.2 or more simply # gdb -k *.2 In this case, though, I don't think that will work. I've seen this missing IdlePTD before, and it was some version mismatch thing. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message