From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42435 invoked by alias); 25 Jul 2015 18:15:22 -0000 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 Received: (qmail 42395 invoked by uid 89); 25 Jul 2015 18:15:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 25 Jul 2015 18:15:17 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 3E2A9A84; Sat, 25 Jul 2015 18:15:16 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-41.ams2.redhat.com [10.36.116.41]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6PIFCSK023875 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 25 Jul 2015 14:15:15 -0400 Date: Sat, 25 Jul 2015 18:15:00 -0000 From: Jan Kratochvil To: Gary Benson Cc: gdb-patches@sourceware.org, =?utf-8?Q?C=C3=A9dric?= Buissart Subject: Re: [PATCH 4/5] Add "target:" filename handling to find_separate_debug_file Message-ID: <20150725181512.GA26135@host1.jankratochvil.net> References: <1434447768-17328-1-git-send-email-gbenson@redhat.com> <1434447768-17328-5-git-send-email-gbenson@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434447768-17328-5-git-send-email-gbenson@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00754.txt.bz2 On Tue, 16 Jun 2015 11:42:47 +0200, Gary Benson wrote: > This commit updates find_separate_debug_file to handle filenames > prefixed with "target:". The same-directory and DEBUG_SUBDIRECTORY > locations are checked with the prefix if supplied. The debugdir > location is checked both with and without the prefix if one is > supplied. This makes GDB able to fetch separate debug files from > remote targets and from inferiors in containers. I do not have practical experience with containers but from what I know their target is to make the container content OS-independent. That is I can run on CentOS host a container with Ubuntu etc. Then this shortcut will not work. I can provide Ubuntu debug info files in some /root/os/ubuntuxyz . Similarly for Fedora 21 running on CentOS I can provide debug info files easily with mock in /var/lib/mock/fedora-21-x86_64/root/ . So one should be able to specify also non-/ directory. Besides that one should be able to specify multiple directories as for example there exist site configurations where each machine has /mnt/nfsdir mounted directory with debug info files for all operating systems in use etc. Unfortunately on UNIX GDB separates multiple directories by ':' which conflicts with the "target:" prefix. But maybe one could make an exception that "target" component would not be parsed as separate directory (which should not clash as nobody is going to use directory name without leading slash). Jan