public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Paul de Vrieze <pauldv@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Split ELF Debug (defult or not?)
Date: Mon, 28 Nov 2005 11:51:47 +0100	[thread overview]
Message-ID: <200511281151.47626.pauldv@gentoo.org> (raw)
In-Reply-To: <1133027430.5317.307.camel@localhost>

[-- Attachment #1: Type: text/plain, Size: 1612 bytes --]

On Saturday 26 November 2005 18:50, 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.
>
> Having a split debug pretty much obsoletes the need to add nostrip to
> your features in order to get debug info.

If we decide to do this, I think we should also find a solution that 
ensures that the executables actually get built with the debugging 
information, and that the upstream makefiles don't strip the binaries 
before we can stop them to.

I see two things we can do to fix these problems:
- In portage mode, add a null split binary to the path, such that
  makefiles that try to split, actually don't. Easier than anything else
  as specifying --debug often also means that you get awful CFLAGS
- Make gcc-wrapper be smart about it, and inject a "-g" CFLAG into the
  command line of the actual gcc.

Of course this all should be turned on/off with a feature or useflag or 
whatever.

Paul

-- 
Paul de Vrieze
Gentoo Developer
Mail: pauldv@gentoo.org
Homepage: http://www.devrieze.net

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

      parent reply	other threads:[~2005-11-28 10:53 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
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 [this message]

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=200511281151.47626.pauldv@gentoo.org \
    --to=pauldv@gentoo.org \
    --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