From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9920 invoked by alias); 7 Mar 2013 12:04:21 -0000 Received: (qmail 9912 invoked by uid 22791); 7 Mar 2013 12:04:20 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Mar 2013 12:04:12 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r27C4BBe030904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 7 Mar 2013 07:04:11 -0500 Received: from host2.jankratochvil.net (ovpn-116-50.ams2.redhat.com [10.36.116.50]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r27C475R018299 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 7 Mar 2013 07:04:10 -0500 Date: Thu, 07 Mar 2013 12:04:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: Doug Evans , gdb-patches Subject: Re: [patch+doc 1/2] filename-display: 1->4 options {inferior,libs}{,-sepdebug} Message-ID: <20130307120407.GA21059@host2.jankratochvil.net> References: <20130215202536.GA20435@host2.jankratochvil.net> <20130227185345.GA21375@host2.jankratochvil.net> <20130227195251.GA29891@host2.jankratochvil.net> <51386C1C.3060107@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51386C1C.3060107@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-03/txt/msg00281.txt.bz2 On Thu, 07 Mar 2013 11:29:48 +0100, Pedro Alves wrote: > On 03/06/2013 07:54 PM, Doug Evans wrote: > > We have various parameters that together specify where to find separate debug info. > > Is it possible to piggyback on that? > > E.g., Something minimal for now like specifying which ones are > > displayed as relative with the default being none? > > I've not really been following the discussion closely, but > I was also wondering the same. The ultimate goal seems to be to > detect system vs non-system binaries ("system" is the word used > in the new proposed knobs even). Isn't the definitive answer > making GDB consider files under "/usr/" > system binaries (the --prefix by default, but could be somewhere > else, thus should be tunable), and everything else, non-system? Besides /usr you need also /bin, /lib, /lib64, /libx32, /opt etc. etc. I was thinking rather about the opposite way, consider non-system binaries those that are under /usr/local, /root and /home . But that is all non-trivial number of directories which will never catch all the distros/setups out there. Thanks, Jan