From owner-freebsd-questions Sun Feb 9 15:44:46 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 D308937B401; Sun, 9 Feb 2003 15:44:44 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-13.pit.adelphia.net [24.53.161.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id C866843F85; Sun, 9 Feb 2003 15:44:43 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.3/8.12.3) with ESMTP id h19NkErX001099; Sun, 9 Feb 2003 18:46:17 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E46E757.5060108@potentialtech.com> Date: Sun, 09 Feb 2003 18:42:15 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Greg 'groggy' Lehey" Cc: Daniela , Mike Meyer , freebsd-questions@FreeBSD.org Subject: Re: Automatically include debug symbols? References: <200302091847.39504.dgw@liwest.at> <15942.39589.709632.258724@guru.mired.org> <200302092116.33639.dgw@liwest.at> <3E46C44C.70203@potentialtech.com> <20030209233139.GB60203@wantadilla.lemis.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Greg 'groggy' Lehey wrote: > 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. OK, well ... I feel stupid then. It's just a disk space issue then? Because ... if it doesn't eat up RAM, I have a hard time thinking why I shouldn't have all my binaries with debug symbols all of the time. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message