Skip site navigation (1)Skip section navigation (2)
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

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031025021215.GA92086>