From owner-freebsd-questions Sun Feb 9 15:31:45 2003 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 5F20037B401 for ; Sun, 9 Feb 2003 15:31:43 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD91F43FA3 for ; Sun, 9 Feb 2003 15:31:41 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 0A49A51973; Mon, 10 Feb 2003 10:01:40 +1030 (CST) Date: Mon, 10 Feb 2003 10:01:40 +1030 From: Greg 'groggy' Lehey To: Bill Moran Cc: Daniela , Mike Meyer , freebsd-questions@freebsd.org Subject: Re: Automatically include debug symbols? Message-ID: <20030209233139.GB60203@wantadilla.lemis.com> References: <200302091847.39504.dgw@liwest.at> <15942.39589.709632.258724@guru.mired.org> <200302092116.33639.dgw@liwest.at> <3E46C44C.70203@potentialtech.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s2ZSL+KKDSLx8OML" Content-Disposition: inline In-Reply-To: <3E46C44C.70203@potentialtech.com> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --s2ZSL+KKDSLx8OML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sunday, 9 February 2003 at 16:12:44 -0500, Bill Moran wrote: > Daniela wrote: >> On Sunday 09 February 2003 19:15, Mike Meyer wrote: >> >>> You can get everything to build with debug symbols by adding >>> "CFLAGS=-g" to /etc/make.conf. However, the system will strip the >>> binaries when it installs them. You could probably get the >>> non-stripped version installed if you really wanted to, but I'd >>> recommend not doing that, and just using the version in /usr/obj, >>> which shouldn't be stripped, for debugging. >> >> Why shouldn't I do this? Is it just because debug binaries are bigger or >> run slower? If so, that's not a problem for me, I have a fast processor >> and a lot of memory. > > I guess if you don't mind them eating up RAM, then go ahead. Keep > in mind that it can easily be 5x the amount of RAM a stripped binary > uses. The symbols don't get loaded into memory on execution. There shouldn't be any difference in the amount of RAM used. Greg -- See complete headers for address and phone numbers --s2ZSL+KKDSLx8OML Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+RuTbIubykFB6QiMRAua1AJ9vvMA00kqCxIgf4VGisYF4RkbjdgCgnzml AlyhPTMumve3Dsx14jYkU9I= =1de+ -----END PGP SIGNATURE----- --s2ZSL+KKDSLx8OML-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message