Gentoo Archives: gentoo-dev

From: Edward Catmur <ed@×××××××××.uk>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Split ELF Debug (default or not?)
Date: Sun, 27 Nov 2005 13:35:44
Message-Id: 1133098363.15135.18.camel@capella.catmur.co.uk
In Reply to: Re: [gentoo-dev] Re: Split ELF Debug (default or not?) by Ivan Yosifov
1 On Sun, 2005-11-27 at 15:09 +0200, Ivan Yosifov wrote:
2 > On Sun, 2005-11-27 at 07:24 -0500, Ned Ludd wrote:
3 > > On Sat, 2005-11-26 at 13:20 -0600, R Hill wrote:
4 > > > Ned Ludd wrote:
5 > > > > Good afternoon,
6 > > > >
7 > > > > probably in portage-2.0.54 a patch will be added to emit split debug
8 > > > > info. Having a split debug allows us to retain all the advantages of
9 > > > > stripping executables while gaining the ability to properly debug
10 > > > > executables in bfd aware programs. It's been in testing with a small
11 > > > > hand full of devs and works quite well, but before it's pushed in we
12 > > > > would like to get input from our devs & users.
13 > > > >
14 > > > > Would you be willing to give up space in $ROOT/usr/lib/debug for ELF
15 > > > > executables by default in order to aid in better debugging by or do we
16 > > > > want to only emit it when a FEATURE= is defined.
17 > > >
18 > > > How much space are we talking about?
19 > >
20 > > There is no fixed size here and depends on the number of packages you
21 > > have and the CFLAGS passed to the programs you build.
22 > > Naturally if you start building all your code with
23 > > CFLAGS="-g3 -ggdb" your going to end up with a larger debug info.
24 >
25 > Of course I will be compiling with CFLAGS="-g3 -ggdb" :)
26 >
27 > The reason I don't do it now is because debug info:
28 >
29 > 1) makes binaries larger
30 > 2) makes binaries slower ( in my experience ( may have to do with 1) )
31 >
32 > And I don't ( not sure if anyone does ) care about any non-gdb debugger.
33 >
34 > So, can you give us a wild guess about the disk space ? How much does it
35 > take on your system and how many packages do you have installed ?
36 >
37 > And one more thing. For proper debugging, don't I need the source to be
38 > present ?
39
40 I've been installing debug symbols and debug sources for a few weeks
41 now, using bashrc hacks.
42
43 I use "debugsymbols" and "debugsources" in FEATURES.
44
45 At a rough estimate, debug symbols with -ggdb3 will add 60% to package
46 sizes, and debug sources will add another 40%. So having this on by
47 default will necessitate a repartition for many users.
48
49 Ed Catmur
50
51 --
52 gentoo-dev@g.o mailing list