Date: Fri, 24 Oct 2003 19:12:15 -0700 From: Kris Kennaway <kris@obsecurity.org> To: Adam Carmichael <carneeki@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Core dumps not containing Symbols Message-ID: <20031025021215.GA92086@rot13.obsecurity.org> In-Reply-To: <Law11-F104DabigPasS00013194@hotmail.com> References: <Law11-F104DabigPasS00013194@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/mdv+Wry0BWjoQKURAqH+AJ417NarL43hJWllpCr05WaUwjQ36gCeLsJe qjPPt461/9cVHUezpZR6pq8= =rxDM -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031025021215.GA92086>
