From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1EgMgx-0000AA-Kl for garchives@archives.gentoo.org; Sun, 27 Nov 2005 13:35:44 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jARDYpQg001880; Sun, 27 Nov 2005 13:34:51 GMT Received: from smtp801.mail.ukl.yahoo.com (smtp801.mail.ukl.yahoo.com [217.12.12.138]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jARDWqCd013856 for ; Sun, 27 Nov 2005 13:32:52 GMT Received: (qmail 98530 invoked from network); 27 Nov 2005 13:32:51 -0000 Received: from unknown (HELO anya) (edward.catmur@btinternet.com@80.192.83.27 with plain) by smtp801.mail.ukl.yahoo.com with SMTP; 27 Nov 2005 13:32:51 -0000 Received: from capella.catmur.co.uk ([::ffff:192.168.10.3]) by anya with esmtp; Sun, 27 Nov 2005 13:32:44 +0000 id 00003F84.4389B582.00006140 Subject: Re: [gentoo-dev] Re: Split ELF Debug (default or not?) From: Edward Catmur To: gentoo-dev@lists.gentoo.org In-Reply-To: <1133096987.26860.5.camel@home.yosifov.net> References: <1133027430.5317.307.camel@localhost> <1133094251.5422.356.camel@localhost> <1133096987.26860.5.camel@home.yosifov.net> Date: Sun, 27 Nov 2005 13:32:43 +0000 Message-Id: <1133098363.15135.18.camel@capella.catmur.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.5.2 X-Archives-Salt: be0b966b-58a9-49f2-8497-57c9b18da638 X-Archives-Hash: a49d2b7b6c4fea2cb2092b7cce579aeb On Sun, 2005-11-27 at 15:09 +0200, Ivan Yosifov wrote: > On Sun, 2005-11-27 at 07:24 -0500, Ned Ludd wrote: > > On Sat, 2005-11-26 at 13:20 -0600, R Hill wrote: > > > Ned Ludd wrote: > > > > Good afternoon, > > > > > > > > probably in portage-2.0.54 a patch will be added to emit split debug > > > > info. Having a split debug allows us to retain all the advantages of > > > > stripping executables while gaining the ability to properly debug > > > > executables in bfd aware programs. It's been in testing with a small > > > > hand full of devs and works quite well, but before it's pushed in we > > > > would like to get input from our devs & users. > > > > > > > > Would you be willing to give up space in $ROOT/usr/lib/debug for ELF > > > > executables by default in order to aid in better debugging by or do we > > > > want to only emit it when a FEATURE= is defined. > > > > > > How much space are we talking about? > > > > There is no fixed size here and depends on the number of packages you > > have and the CFLAGS passed to the programs you build. > > Naturally if you start building all your code with > > CFLAGS="-g3 -ggdb" your going to end up with a larger debug info. > > Of course I will be compiling with CFLAGS="-g3 -ggdb" :) > > The reason I don't do it now is because debug info: > > 1) makes binaries larger > 2) makes binaries slower ( in my experience ( may have to do with 1) ) > > And I don't ( not sure if anyone does ) care about any non-gdb debugger. > > So, can you give us a wild guess about the disk space ? How much does it > take on your system and how many packages do you have installed ? > > And one more thing. For proper debugging, don't I need the source to be > present ? I've been installing debug symbols and debug sources for a few weeks now, using bashrc hacks. I use "debugsymbols" and "debugsources" in FEATURES. At a rough estimate, debug symbols with -ggdb3 will add 60% to package sizes, and debug sources will add another 40%. So having this on by default will necessitate a repartition for many users. Ed Catmur -- gentoo-dev@gentoo.org mailing list