Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Olivier Crête <tester@g.o>
Subject: Re: separate debug information
Date: Fri, 02 Apr 2004 15:48:05 +0200
On Fri, 2004-04-02 at 13:43, Paul de Vrieze wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Friday 02 April 2004 13:35, Olivier Crête wrote:
> > Hi,
> >
> > I actually have a patch (in bug #45756) that does the job.. But there
> > are two problems which have thus far prevented me from pushing more on
> > this, first I experience bizarre brokenness with gdb 6.x (#45756)..
> > And second, binutils<2.14.90.0.8 only copies the debug section, but
> > not the symbols into the debug file. So using the currently stable
> > binutils, we have to use strip -g (and it procudes empty .debug files
> > if -g is not in the cflags) so its not that useful without using the
> > ~arch binutils (and being able to fully strip the executables).
> 
> I've got gdb-6, but have not actually used it. That it only works with 
> testing for now is not a big problem for me.
> 
> > Also, I'd like to try to see if we could have a features where the
> > sources are kept for reference like redhat/fedora does with its
> > -debuginfo rpms. I'll check how redhat does it and if we can do
> > something similar when I come back from my vacation...
> 
> Basically it would require that the sources are not removed 
> from /var/tmp/portage, and that users actually get read access to this 
> directory.

Redhat does it more intelligently.. They have a little program called
debugedit (part of the rpm package) that pulls the list of the relevant
files and edits the debug info inside the elf files to point them to
/usr/src/debug/.. instead of to the build directory. That allows them
only keep the relevant sources and not all of the intermediary files.
Their little program only depends on popt and libelf, so I guess it
could be included in portage. I'll try to see if I can modify my patch
to use that. =20

While I'm at it.. redhat uses eu-strip (also included in binutils)
instead of objcopy/strip... using eu-strip would allow us to have it
working right now, but will break when it is removed from binutils..

-- 
Olivier Crête
tester@g.o
Gentoo Developer
Attachment:
signature.asc (This is a digitally signed message part)
References:
separate debug information
-- Olivier Crête
Re: separate debug information
-- Paul de Vrieze
Re: separate debug information
-- Olivier Crête
Re: separate debug information
-- Paul de Vrieze
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: separate debug information
Next by thread:
Re: separate debug information
Previous by date:
Re: separate debug information
Next by date:
Re: Do I really need the tree?


Updated Jun 17, 2009

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.