From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82368 invoked by alias); 1 Mar 2015 17:54:41 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 82357 invoked by uid 89); 1 Mar 2015 17:54:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: out1-smtp.messagingengine.com Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 01 Mar 2015 17:54:08 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id BF861204B3 for ; Sun, 1 Mar 2015 12:54:05 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Sun, 01 Mar 2015 12:54:06 -0500 Received: from [192.168.1.102] (unknown [31.51.205.191]) by mail.messagingengine.com (Postfix) with ESMTPA id 674D7C00295 for ; Sun, 1 Mar 2015 12:54:06 -0500 (EST) Message-ID: <54F35239.6060002@dronecode.org.uk> Date: Sun, 01 Mar 2015 17:54:00 -0000 From: Jon TURNEY User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: cygwin-apps@cygwin.com Subject: Re: [RFC] cygport: split debuginfo packages References: <4FE2BE24.4050508@users.sourceforge.net> <1340999291.11608.0.camel@YAAKOV04> <4FF8352C.6060907@dronecode.org.uk> <54EB19C3.2060402@dronecode.org.uk> <1425018433.11676.34.camel@cygwin.com> In-Reply-To: <1425018433.11676.34.camel@cygwin.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-03/txt/msg00003.txt.bz2 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 Contents of section .zdebug_info: 100635000 5a4c4942 00000000 0080a07f 789cecbd ZLIB........x... 100635010 797c9bd5 95377eef 23d97e64 f9b16547 y|...7~.#.~d..eG 100635020 cb1363c7 929d10b3 24717687 24c4fb92 ..c.....$qv.$... 100635030 788bed24 ceaac892 6c8bc896 90e4c406 x..$....l....... 100635040 3a4d175a 2850680b 94524ae9 46693b33 :M.Z(Ph..RJ.Fi;3 100635050 d0d26919 ba990205 0a2d740a 0cd36d68 ..i......-t...mh $ gdb /usr/bin/XWin.exe GNU gdb (GDB) 7.8 [...] Reading symbols from /usr/bin/XWin.exe...Reading symbols from /usr/lib/debug//usr/bin/XWin.exe.dbg...done. done. (gdb) b main Breakpoint 1 at 0x10057c147: file /usr/src/debug/xorg-server-1.17.1-2/hw/xwin/InitOutput.c, line 166. (gdb) r Starting program: /usr/bin/XWin.exe [New Thread 2900.0x23e0] [New Thread 2900.0xe8] Breakpoint 1, main (argc=1, argv=0x23cb40, envp=0x6000281a0) at /usr/src/debug/xorg-server-1.17.1-2/hw/xwin/InitOutput.c:166 166 {