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 1EgAq4-0004JZ-9n for garchives@archives.gentoo.org; Sun, 27 Nov 2005 00:56:20 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jAR0tbkM031373; Sun, 27 Nov 2005 00:55:37 GMT Received: from mx2.starman.ee (smtp-out4.starman.ee [85.253.0.6]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jAR0roq7030734 for ; Sun, 27 Nov 2005 00:53:50 GMT Received: from ip21.cab16.mus.starman.ee (ip21.cab16.mus.starman.ee [82.131.16.21]) by mx2.starman.ee (Postfix) with ESMTP id B20DA32C0B9 for ; Sun, 27 Nov 2005 02:53:45 +0200 (EET) Subject: Re: [gentoo-dev] Split ELF Debug (defult or not?) From: Mart Raudsepp To: gentoo-dev@lists.gentoo.org In-Reply-To: <46059ce10511261648m6db1041dj1d26b34d10312ea8@mail.gmail.com> References: <1133027430.5317.307.camel@localhost> <4388D6CE.3090001@gentoo.org> <46059ce10511261648m6db1041dj1d26b34d10312ea8@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Date: Sun, 27 Nov 2005 02:53:45 +0200 Message-Id: <1133052825.7971.2.camel@localhost> 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 X-Mailer: Evolution 2.5.2 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id jAR0tbm0031373 X-Archives-Salt: 71f52a5f-1cda-4a81-9cca-a6a56490ea3d X-Archives-Hash: 929808657e9525036810ea1b664000ad On Sat, 2005-11-26 at 19:48 -0500, Dan Meltzer wrote: > On 11/26/05, Petteri R=E4ty wrote: > > Ned Ludd wrote: > > > Good afternoon, > > > > > > Would you be willing to give up space in $ROOT/usr/lib/debug for EL= F > > > executables by default in order to aid in better debugging by or do= we > > > want to only emit it when a FEATURE=3D is defined. > > > > > > Having a split debug pretty much obsoletes the need to add nostrip = to > > > your features in order to get debug info. > > > > > > Users wishing to not have debug info can simply add > > > INSTALL_MASK=3D"/usr/lib/debug ${INSTALL_MASK}" to make.conf or the > > > environment unless we make it FEATURE based. > > > > > > I'm in favor of it enabled per default but I'd like to know what yo= u > > > think and why. (advantages of on/off by default etc..) > > > > > > > How useful is this debug information with -fomit-frame-pointer? From > > what I have read it makes debugging at least harder. I think most peo= ple > > have -fomit-frame-pointer in their CFLAGS so it should not be enabled= by > > default if the debug info is not very useful any way. >=20 > Well, only on x86 and other lacking arches... Please note that gcc4 generates location lists by default (at least on debug builds). This should allow for debugging on x86 with -fomit-frame-pointers. Not sure how that works in relation to split ELF debug files. http://gnu.paradoxical.co.uk/software/gcc/gcc-4.0/changes.html "Location lists are now generated by default when compiling with debug info and optimization. Location lists provide more accurate debug info about locations of variables and they allow debugging code compiled with -fomit-frame-pointer." Of course gcc4 isn't even ~x86 yet... ;) --=20 With regards, Mart Raudsepp Project manager of wxMUD - http://wxmud.sourceforge.net/ Developer of wxWidgets - http://www.wxwidgets.org/ Gtk+ port maintainer of cpaf - http://cpaf.berlios.de/ --=20 gentoo-dev@gentoo.org mailing list