This is the mail archive of the cygwin-apps mailing list for the Cygwin 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] cygport: split debuginfo packages


On 01/03/2015 17:54, Jon TURNEY wrote:
On 27/02/2015 06:27, Yaakov Selkowitz wrote:
On Mon, 2015-02-23 at 12:14 +0000, Jon TURNEY wrote:
On 07/07/2012 14:10, Jon TURNEY wrote:
I was going to suggest the use of objcopy --compress-debug-sections,
but it
appears that does nothing for PE/COFF files at the moment [1] :-(

[1] http://sourceware.org/bugzilla/show_bug.cgi?id=14067

That bug has been fixed for a while, so how about the attached?

This appears to reduce the disk space used by .dbg files to about 1/3 of
the size, so seems worthwhile.

Have you tested that the resulting split debuginfo work properly with
gdb?

It's hardly a comprehensive test, but I did try this:

$ objdump -j ".zdebug_info" -s /usr/lib/debug/usr/bin/XWin.exe.dbg | head

/usr/lib/debug/usr/bin/XWin.exe.dbg:     file format pei-x86-64

I should have tried this on x86. There seems to be a good chance that this will result in broken debug information on x86.

See binutils bug #18087 [1] for details.

Perhaps this should be reverted unless or until fixed in binutils.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=18087


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