From owner-freebsd-questions@FreeBSD.ORG Fri Oct 24 19:12:16 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EABE216A4B3 for ; Fri, 24 Oct 2003 19:12:16 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-63-207-60-234.dsl.lsan03.pacbell.net [63.207.60.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1244343F75 for ; Fri, 24 Oct 2003 19:12:16 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id A97E566DE9; Fri, 24 Oct 2003 19:12:15 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 78526CBE; Fri, 24 Oct 2003 19:12:15 -0700 (PDT) Date: Fri, 24 Oct 2003 19:12:15 -0700 From: Kris Kennaway To: Adam Carmichael Message-ID: <20031025021215.GA92086@rot13.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: Core dumps not containing Symbols X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Oct 2003 02:12:17 -0000 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 25, 2003 at 07:31:12AM +1000, Adam Carmichael wrote: > Greetings all, >=20 > I have a box that is dumping cores, and I would like to look into the=20 > matter further, but my output in gdb does not appear to contain symbols. >=20 > I modified GENERIC so that it contains the following line: > makeoptions DEBUG=3D-g >=20 > I have also tried with and without the following two options: > options DDB > options DDB_UNATTENDED > without success. >=20 > I read in Absolute BSD, and the FreeBSD Developers Handbook that my=20 > makeoptions line should be all that is required. >=20 > This code is from the 4-STABLE source at about 01:20 AEST, Sat Oct 25, 20= 03=20 > (about 15:20, Fri Oct 24 2003 UTC [sorry if I'm an hour out - I don't kno= w=20 > whether I subtract 10 hours or 11 hours for daylight savings/winter time]= ). >=20 > What other stages are there to get the relevant source to appear in gdb= =20 > 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 --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/mdv+Wry0BWjoQKURAqH+AJ417NarL43hJWllpCr05WaUwjQ36gCeLsJe qjPPt461/9cVHUezpZR6pq8= =rxDM -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--