On 09-Jul-2002 M. Warner Losh wrote: > OK. How the ***** do I get a *!@#$@$#% crash dump on current? I > did a dumpon to enable the dumping, which appeared to work. I then > did a savecore after the system came back up (but before any swapping > happened) and that seemed to work. I then tried to use gdb to read > the core dump and got the following: > > 9:58am hammer:/dell/crash[52]> sudo gdb -k *.2 > GNU gdb 4.18 (FreeBSD) > 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"... > > "/dell/crash/info.2": not in executable format: File format not recognized > > > kgdb could not open the exec-file, please check the name you used ! > (kgdb) quit > sudo gdb -k ~/FreeBSD/src/sys/i386/compile/GENERIC/kernel.debug vmcore.2 > GNU gdb 4.18 (FreeBSD) > 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"...Deprecated bfd_read called at > /dell/imp/FreeBSD/src/contrib/gdb/gdb/dwarf2read.c line 3049 in dwarf2_read_section > > > Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader. > > > kernel symbol `cpuhead' not found. > (kgdb) quit > > Needless to say, I'm somewhat frustrated as to what to do. Ideas?
If you still want to use gdb 4.18, you have to build your kernel with DEBUG=-gstabs+ or some such. Either that or use gdb52 from ports or from a more recent system with your kernel and dump. -- John Baldwin <[EMAIL PROTECTED]> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message