This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Support for separate debug info files


Hi Jakub,

>>   This leads me to my main point.  Do we need the ability to create
>>   stripped debuginfo files ?  The original patch did this, but it
>>   turns out to be problematical since the debuginfo files need to
>>   contain dummy versions of the .text, .data, etc sections.  Doing
>>   this, rather than just stripping them out, looked non-trivial, so I
>>   decided to skip it for this version.
>
> By stripped debuginfo files you mean what eu-strip -f creates,
> right?

Err, probably.  I mean debuginfo files that work with GDB and which
can provide the necessary information to allow the debugging of a
stripped executable.  I found that just collecting together the
various .debug.* sections (and associated symbols) was not enough.
The debuginfo also needs a full section table and program header
table, with dummy entries for the stipped out sections.  And producing
this kind of file would be, IMHO, tricky.


> which is how you install it, because suddenly you have to transfer
> more bytes from the network in order to debug packages, and not
> everybody has a fast pipe.

But then not everyone wants to debug anything.  And the number of
people who are going to want to debug a big executable (eg openoffice)
is probably very small.  So by being able to ship a program as a
small, quick to download package which only becomes big if the second,
debuginfo package has to be downloaded, people will be encouraged to
use it.

Similarly for distributions, this change would allow a distribution to
be shipped in a much smaller space, possibly on less CDs, and only a
few people are going to want to download/buy the extra CDs containing
the debugging info.

Well that is my theory anyway... :-)

Cheers
        Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]