From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12538 invoked by alias); 24 Sep 2012 17:04:11 -0000 Received: (qmail 12512 invoked by uid 22791); 24 Sep 2012 17:04:08 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 Sep 2012 17:03:56 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7CEB01C7A76; Mon, 24 Sep 2012 13:03:55 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4iGW72du4YTq; Mon, 24 Sep 2012 13:03:55 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 2C4A11C7A75; Mon, 24 Sep 2012 13:03:55 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id CC017CCCE8; Mon, 24 Sep 2012 19:03:48 +0200 (CEST) Date: Mon, 24 Sep 2012 17:04:00 -0000 From: Joel Brobecker To: Khoo Yit Phang Cc: Jan Kratochvil , GDB Patches Subject: Re: [PATCH 2/2] Try to initialize data-directory by first searching for "data-directory" in the same directory as the gdb binary Message-ID: <20120924170348.GI4146@adacore.com> References: <20120922110822.GA28159@host2.jankratochvil.net> <78B3333C-92F9-474D-8352-087C5A0F575B@cs.umd.edu> <20120924072945.GA4146@adacore.com> <20120924145910.GE4146@adacore.com> <2878953E-B698-43F3-989A-A551D96BAB62@cs.umd.edu> <20120924152641.GF4146@adacore.com> <9F52A338-A158-44DC-90C1-F46503859613@cs.umd.edu> <285502C6-1395-4049-9D55-031EDA3AD06D@cs.umd.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <285502C6-1395-4049-9D55-031EDA3AD06D@cs.umd.edu> User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00518.txt.bz2 > Here's yet another alternative: gdb already tries to locate > data-directory in $BUILDDIR/share/gdb as part of the relocation logic; > we can install a symlink there that points to > $BUILDDIR/gdb/data-directory, or make a copy for platforms that don't > support symlinks. Sounds like an interesting idea. We could even do a local install of the share directory with $BUILDDIR as the prefix, to avoid duplicating the code, if that helps. But people might complain that this steps is unnecessary for those who always do an install after build. I think it's sufficiently negligible to be OK, personally. -- Joel