From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19576 invoked by alias); 18 Sep 2012 15:44:08 -0000 Received: (qmail 19566 invoked by uid 22791); 18 Sep 2012 15:44:06 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,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; Tue, 18 Sep 2012 15:43:52 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8IFhmu6027658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 18 Sep 2012 11:43:48 -0400 Received: from host2.jankratochvil.net (ovpn-113-58.phx2.redhat.com [10.3.113.58]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8IFhi0R023987 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 18 Sep 2012 11:43:47 -0400 Date: Tue, 18 Sep 2012 15:44:00 -0000 From: Jan Kratochvil To: Khoo Yit Phang Cc: Eli Zaretskii , Joel Brobecker , gdb-patches@sourceware.org Subject: Re: [PATCH] Warn about data-directory when failing to import Python "gdb" module Message-ID: <20120918154344.GA1174@host2.jankratochvil.net> References: <20120917202241.GB4423@host2.jankratochvil.net> <20120917205828.GA28626@adacore.com> <83txuv26ti.fsf@gnu.org> <20120918115814.GA4659@host2.jankratochvil.net> <8A40A823-A534-4F9C-AF1A-1202E98E03B0@cs.umd.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8A40A823-A534-4F9C-AF1A-1202E98E03B0@cs.umd.edu> 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: 2012-09/txt/msg00367.txt.bz2 On Tue, 18 Sep 2012 17:37:40 +0200, Khoo Yit Phang wrote: > If I understand relocate_gdb_directory, it already tries to relocate > data-directory from /usr/local/share/gdb (GDB_DATADIR on my config) to > build-directory/gdb/../share/gdb. Could we move the > build-directory/gdb/data-directory there? No. > Otherwise, do you mean to change relocate_gdb_directory to specially check > for GDB_DATADIR and replace it with buiid-directory/gdb/data-directory? That > could lead to the odd possibility that an installed GDB would look for > data-directory in a stray build directory. I suppose this can be prevented > by checking if gdb_program_name is itself located in build-directory. Installed GDB will have path /usr/bin/gdb and I find OK if GDB checks that /usr/bin/data-directory/ does not exist. Thanks, Jan