Gentoo Archives: gentoo-dev

From: "Olivier Crête" <tester@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] separate debug information
Date: Fri, 02 Apr 2004 11:29:14
Message-Id: 1080905727.13565.11.camel@TesterTop.tester.ca
In Reply to: Re: [gentoo-dev] separate debug information by Paul de Vrieze
1 Hi,
2
3 I actually have a patch (in bug #45756) that does the job.. But there
4 are two problems which have thus far prevented me from pushing more on
5 this, first I experience bizarre brokenness with gdb 6.x (#45756).. And
6 second, binutils<2.14.90.0.8 only copies the debug section, but not the
7 symbols into the debug file. So using the currently stable binutils, we
8 have to use strip -g (and it procudes empty .debug files if -g is not in
9 the cflags) so its not that useful without using the ~arch binutils (and
10 being able to fully strip the executables).
11
12 Also, I'd like to try to see if we could have a features where the
13 sources are kept for reference like redhat/fedora does with its
14 -debuginfo rpms. I'll check how redhat does it and if we can do
15 something similar when I come back from my vacation...
16
17 Olivier
18
19 On Fri, 2004-04-02 at 10:47, Paul de Vrieze wrote:
20 > -----BEGIN PGP SIGNED MESSAGE-----
21 > Hash: SHA1
22 >
23 > On Tuesday 16 March 2004 23:02, Olivier Crête wrote:
24 > > Hi,
25 > >
26 > > There is a new features in gdb 6.0 and recent binutils that allows the
27 > > debug information to be stored in a separate file from the binary.
28 > > Allowing the memory benefits of stripping while keeping the debugging
29 > > abilities.
30 > >
31 > > Has anyone looked at/worked on this? If no one else is doing it, I'll
32 > > try to see if I can make it work tomorrow.
33 >
34 > It works in conjunction with the --only-keep-debug and
35 > - --add-gnu-debuglink flags. Look at the binutils info file searching for
36 > these flags.
37 >
38 > Paul
39 >
40 > - --
41 > Paul de Vrieze
42 > Gentoo Developer
43 > Mail: pauldv@g.o
44 > Homepage: http://www.devrieze.net
45 > -----BEGIN PGP SIGNATURE-----
46 > Version: GnuPG v1.2.4 (GNU/Linux)
47 >
48 > iD8DBQFAbSiRbKx5DBjWFdsRAmcwAKCvrLUYy7/OHheDwYPMBxpsvT2vNACfUZzK
49 > CwRzP6nr7u1/9O08Be/k/Vc=
50 > =pJPe
51 > -----END PGP SIGNATURE-----
52 >
53 > --
54 > gentoo-dev@g.o mailing list
55 --
56 Olivier Crête
57 tester@g.o
58 Gentoo Developer

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] separate debug information Paul de Vrieze <pauldv@g.o>