From owner-freebsd-net Fri Oct 1 6:59:32 1999 Delivered-To: freebsd-net@freebsd.org Received: from babelbrox.axion.bt.co.uk (babelbrox.axion.bt.co.uk [132.146.16.6]) by hub.freebsd.org (Postfix) with ESMTP id 6629715488 for ; Fri, 1 Oct 1999 06:58:59 -0700 (PDT) (envelope-from graeme.n.brown@bt.com) Received: from cbtlipnt01.btlabs.bt.co.uk by babelbrox.axion.bt.co.uk (local) with ESMTP; Fri, 1 Oct 1999 14:56:19 +0100 Received: by cbtlipnt01.btlabs.bt.co.uk with Internet Mail Service (5.5.2448.0) id ; Fri, 1 Oct 1999 14:55:26 +0100 Message-ID: <71DA16F18D32D2119A1D0000F8FE9A9402B5A2F6@mbtlipnt01.btlabs.bt.co.uk> From: graeme.n.brown@bt.com To: freebsd-net@freebsd.org Subject: Does gdb -k work on FreeBSD-3.2-RELEASE elf kernels ? Date: Fri, 1 Oct 1999 14:55:12 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I realise that the following is a little offbeam for freebsd-net but I am trying to fix a networking bug. So I am hoping someone will be kind ... I am trying to trace the line of code which gives a kernel panic in some IP6 code (KAME) which I am modifying on FreeBSD-3.2-RELEASE. I am trying to do a kernel post-mortem analyis with gdb -k etc. I believe I have prepared a kernel (IP6_624) with debug support OK :- cd ~graeme/sys/i386/conf config -gr IP6_624 cd ../../IP6_624 make depend make cp kernel kernel.debug strip -g kernel make install reboot ; dumpon /dev/wd0s1b ( my swap partition) provoke kernel panic, kernel dumps to /dev/wd0s1b after reboot :- cd ~graeme/sys/compile/IP6_624 savecore -N ./kernel.debug /usr/crash which in my case created /usr/crash/kernel.2 and /usr/crash/vmcore.2 but when I run gdb -k I do not seem to see debug symbols :- gdb -k ./kernel.debug /usr/crash/vmcore.2 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"... IdlePTD 3809280 kernel symbol `gd_curpcb' not found. <--- what does this mean ? (kgdb) where No stack. (kgdb) quit What am I doing wrong ? TIA Graeme N Brown email: graeme.n.brown@bt.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message