This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Designs for better debug info in GCC
- From: Andi Kleen <andi at firstfloor dot org>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 22 Dec 2007 23:49:23 +0100
- Subject: Re: Designs for better debug info in GCC
- References: <or4pg114h5.fsf@oliva.athome.lsd.ic.unicamp.br.suse.lists.egcs> <orsl1xq4p3.fsf@oliva.athome.lsd.ic.unicamp.br.suse.lists.egcs> <m3ir2t2u57.fsf@localhost.localdomain.suse.lists.egcs> <m3tzmd1209.fsf@localhost.localdomain.suse.lists.egcs> <m34pec1x4k.fsf@localhost.localdomain.suse.lists.egcs> <orwsr8eyz5.fsf@oliva.athome.lsd.ic.unicamp.br.suse.lists.egcs> <m3wsr76hov.fsf@localhost.localdomain.suse.lists.egcs> <or8x3ng5ie.fsf@oliva.athome.lsd.ic.unicamp.br.suse.lists.egcs> <m3r6hf4mw1.fsf@localhost.localdomain.suse.lists.egcs> <de8d50360712211607h77a0add5h794f6b5781b6491b@mail.gmail.com.suse.lists.egcs> <de8d50360712211609y643b8affpeb91048dedecbe60@mail.gmail.com.suse.lists.egcs> <7C283DB3-9716-4B2C-9721-D1F503B91CC4@apple.com.suse.lists.egcs> <m37ij64mwt.fsf@localhost.localdomain.suse.lists.egcs>
Ian Lance Taylor <iant@google.com> writes:
> I'm in favor of implementing this.
Yes it would be great.
> As I'm sure you know, the GNU
> binutils
Actually binutils only barely supports debuginfo. AFAIK
objcopy is the tool tool that knows anything about them.
> and gdb already support using a single separate file for
> debugging information.
That does not solve that problem because all that data still
has to be copied. In the current setup even two times
(.o -> exe -> objcopy to debuginfo and then another strip
which is another partial write).
I assume that copying phase is the problem people are complaining
about and debuginfo makes it even worse now.
> well during development for a program which is normally run on the
> same system on which it is developed. It doesn't help much when the
> program must be run on a different system--it's possible to use
> gdbserver, but awkward. And it doesn't help at all when it is
> sometimes necessary to debug executables which have been built and
> distributed widely.
The Linux distributions have debuginfo rpms that work
fine for that. But it does not solve the link time IO problem.
-Andi