public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mart Raudsepp <leio@dustbite.net>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Split ELF Debug (defult or not?)
Date: Sun, 27 Nov 2005 02:53:45 +0200	[thread overview]
Message-ID: <1133052825.7971.2.camel@localhost> (raw)
In-Reply-To: <46059ce10511261648m6db1041dj1d26b34d10312ea8@mail.gmail.com>

On Sat, 2005-11-26 at 19:48 -0500, Dan Meltzer wrote:
> On 11/26/05, Petteri Räty <betelgeuse@gentoo.org> wrote:
> > Ned Ludd wrote:
> > > Good afternoon,
> > >
> > > 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.
> > >
> > > 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="/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 you
> > > 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 people
> > 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.
> 
> 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... ;)

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

-- 
gentoo-dev@gentoo.org mailing list



  reply	other threads:[~2005-11-27  0:56 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-26 17:50 [gentoo-dev] Split ELF Debug (defult or not?) Ned Ludd
2005-11-26 18:30 ` Bruno
2005-11-26 18:55   ` [gentoo-dev] Split ELF Debug (default " Ned Ludd
2005-11-27  9:53     ` Kevin F. Quinn
2005-11-27 12:18       ` Ned Ludd
2005-11-26 19:15 ` [gentoo-dev] Split ELF Debug (defult " Olivier Crête
2005-11-26 19:20 ` [gentoo-dev] " R Hill
2005-11-27 12:24   ` [gentoo-dev] Re: Split ELF Debug (default " Ned Ludd
2005-11-27 13:09     ` Ivan Yosifov
2005-11-27 13:32       ` Edward Catmur
2005-11-27 13:40       ` Ned Ludd
2005-11-27 15:22         ` Edward Catmur
2005-11-27 15:44           ` Ned Ludd
2005-11-27 16:55             ` Ned Ludd
2005-11-27 21:01               ` Ivan Yosifov
2005-11-27 22:24                 ` Ned Ludd
2005-11-28 11:00                 ` Paul de Vrieze
2005-11-27 18:03         ` Mark Loeser
2005-11-27 19:51           ` Olivier Crête
2005-11-26 19:22 ` [gentoo-dev] Split ELF Debug (defult " Ivan Yosifov
2005-11-26 20:01 ` Mike Frysinger
2005-11-26 21:42 ` Petteri Räty
2005-11-27  0:48   ` Dan Meltzer
2005-11-27  0:53     ` Mart Raudsepp [this message]
2005-11-27 12:23   ` [gentoo-dev] Split ELF Debug (default " Ned Ludd
2005-11-26 23:10 ` [gentoo-dev] Split ELF Debug (defult " Luca Barbato
2005-11-27 12:54   ` Diego 'Flameeyes' Pettenò
2005-11-27 14:39     ` Dan Meltzer
2005-11-27 14:49       ` Diego 'Flameeyes' Pettenò
2005-11-27 14:50       ` Ned Ludd
2005-11-27 15:31       ` Edward Catmur
2005-11-28  1:18     ` Georgi Georgiev
2005-11-28  4:21       ` Edward Catmur
2005-11-27 15:04 ` Tavis Ormandy
2005-11-27 15:30   ` Dan Meltzer
2005-11-28 11:14     ` Paul de Vrieze
2005-11-27 22:35 ` Spider (D.m.D. Lj.)
2005-11-28 10:51 ` Paul de Vrieze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1133052825.7971.2.camel@localhost \
    --to=leio@dustbite.net \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox