From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119634 invoked by alias); 31 May 2019 11:09:28 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 119093 invoked by uid 89); 31 May 2019 11:09:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=inglis, soegtrop, Inglis, Soegtrop X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 31 May 2019 11:09:26 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id WfPXhm4aAldkPWfPYhMkgl; Fri, 31 May 2019 05:09:24 -0600 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: cygport: how to install package sources for debugging without recompiling? To: "cygwin@cygwin.com" References: <0F7D3B1B3C4B894D824F5B822E3E5A178FD75804@IRSMSX102.ger.corp.intel.com> <1eeb5325-40d8-baeb-6543-8c0a9035b3c1@dronecode.org.uk> <0F7D3B1B3C4B894D824F5B822E3E5A178FD758B0@IRSMSX102.ger.corp.intel.com> <77c7c864-aacd-ec4a-c3a8-7435c2a56a4c@SystematicSw.ab.ca> <0F7D3B1B3C4B894D824F5B822E3E5A178FD75933@IRSMSX102.ger.corp.intel.com> From: Brian Inglis Openpgp: preference=signencrypt Message-ID: <28d91ab5-dec0-6945-3474-c57b77c3a712@SystematicSw.ab.ca> Date: Fri, 31 May 2019 11:09:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A178FD75933@IRSMSX102.ger.corp.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00269.txt.bz2 On 2019-05-30 12:00, Soegtrop, Michael wrote: >> For Cygwin dlls, look at your installed lib... packages and install the related lib...- >> debuginfo packages where available: >> $ apt-cyg listall lib*-debuginfo | wc >> 350 1050 12704 > As far as I can tell these files only contain sources, but nothing which > would add debug info to stripped dlls: > $ tar -xavf mingw64-x86_64-runtime-debuginfo-6.0.0-1.tar.xz > $ find . -type f | sed -e 's/.*\.//' | sort -u > c > h > s > xz >> I am surprised at the number of supported mingw64- packages and the >> scarcity of related -debuginfo packages: > the MinGW support in Cygwin has very substantially improved in the last > years, but indeed many -debuginfo packages for MinGW libs are missing. The stripped exe debug info is saved as part of each cygport build and supplied as part of the binary -debuginfo package, if available, under /usr/lib/debug/usr/.../*.exe.dbg. With recent cygport releases I believe everything is taken care of unless you override (or mess up, or don't use) the cygport build and upload defaults. If I want to try a package, I grab the sources from upstream, copy and modify a cygport file to do the build, as it makes it so easy to use a variety of tool chains I am unfamiliar with, and gdb if required for diagnosis. $ apt-cyg listfiles cygwin-debuginfo | fgrep .dbg usr/lib/debug/usr/bin/cygwin1.dbg usr/lib/debug/usr/bin/chattr.exe.dbg usr/lib/debug/usr/bin/cygpath.exe.dbg ... usr/lib/debug/usr/bin/cygwin-console-helper.exe.dbg usr/lib/debug/usr/bin/ldh.exe.dbg usr/lib/debug/usr/bin/strace.exe.dbg usr/lib/debug/usr/sbin/cygserver.exe.dbg $ apt-cyg listfiles coreutils-debuginfo | fgrep .dbg usr/lib/debug/usr/bin/arch.exe.dbg usr/lib/debug/usr/bin/b2sum.exe.dbg usr/lib/debug/usr/bin/base32.exe.dbg ... usr/lib/debug/usr/bin/whoami.exe.dbg usr/lib/debug/usr/bin/yes.exe.dbg usr/lib/debug/usr/bin/[.exe.dbg usr/lib/debug/usr/libexec/coreutils/libstdbuf.so.dbg $ -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple