Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 7 Aug 2005 23:21:17 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Snapshots are now stripped again Message-ID: <20050808032117.GA6731@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.8i I've just reinstated the stripping of snapshots so that when you download a compressed DLL (either directly or via cygwin-inst-*.tar.bz2) it will not contain debug info. The debug info is now available as a separate compressed '.dbg' file. To use the .dbg file for debugging, you just have to uncompress it and move it to /bin, calling it "cygwin1.dbg". gdb will then use this file automatically when debugging cygwin1.dll. I'll be making the .dbg file available when I make the formal cygwin release also, either in the source tarball or as a separate package. The split of debug information into a separate file reflects a change to the way the Cygwin DLL is now generated by the makefile in winsup/cygwin. Debug information will no longer be part of the DLL itself, but will, instead, only be included in the .dbg file. There is a technical reason which prompted this change which I won't go into here, but I think the minor inconvenience of keeping the debug info in a separate place outweighs the benefits of keeping the debug info out of the DLL and making it available as a separate download. The splitting of the debug information into a new file is something that I've wanted to do for a long time but problems with the standard binutils way of accomplishing this task had proven to be daunting for PE format executables. I took some time today to try to understand what was going wrong and wrote a script to fix up the dll so that information about cygwin1.dbg was included in cygwin1.dll in a way that does not cause cygwin1.dll to be an invalid binary -- which was the problem before. Eventually, I will fix binutils so that this workaround is no longer necessary and, then, it will be possible to create separate debug files for any binary, without the need for my fixup. For those curious about how the standard GNU way of splitting debug information out of the binary, check out the objcopy man page and look for --only-keep-debug. http://cygwin.com/snapshots/ cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/