On Sat, Oct 25, 2003 at 07:31:12AM +1000, Adam Carmichael wrote: > Greetings all, > > I have a box that is dumping cores, and I would like to look into the > matter further, but my output in gdb does not appear to contain symbols. > > I modified GENERIC so that it contains the following line: > makeoptions DEBUG=-g > > I have also tried with and without the following two options: > options DDB > options DDB_UNATTENDED > without success. > > I read in Absolute BSD, and the FreeBSD Developers Handbook that my > makeoptions line should be all that is required. > > This code is from the 4-STABLE source at about 01:20 AEST, Sat Oct 25, 2003 > (about 15:20, Fri Oct 24 2003 UTC [sorry if I'm an hour out - I don't know > whether I subtract 10 hours or 11 hours for daylight savings/winter time] ). > > What other stages are there to get the relevant source to appear in gdb > when i run 'where'?
You need to use the right kernel image. The installed kernel (/kernel) is stripped of debugging symbols. The kernel in /usr/src/sys/compile/WHATEVER/kernel.debug contains the debugging symbols and can be used with gdb -k. Kris
pgp00000.pgp
Description: PGP signature