From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13968 invoked by alias); 24 Sep 2012 15:27:00 -0000 Received: (qmail 13960 invoked by uid 22791); 24 Sep 2012 15:26:58 -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 15:26:45 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 45F591C736E; Mon, 24 Sep 2012 11:26:45 -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 GQL2j5BWmYV3; Mon, 24 Sep 2012 11:26:45 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id DCBCA1C717C; Mon, 24 Sep 2012 11:26:44 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id A7405CCCE8; Mon, 24 Sep 2012 17:26:41 +0200 (CEST) Date: Mon, 24 Sep 2012 15:27: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: <20120924152641.GF4146@adacore.com> References: <20120919130040.GA20442@host2.jankratochvil.net> <20120921183122.GB8747@host2.jankratochvil.net> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2878953E-B698-43F3-989A-A551D96BAB62@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/msg00509.txt.bz2 > > As long as we take the build data-directory as a fallback over a non- > > existant standard (configured/possibly relocated) data-directory, > > I don't see a problem. > > Oh, I missed this, the way it works with either patch, the build > data-directory is *not* a fallback, it *overrides* the standard > data-directory. That's the only way it can work if the standard > data-directory exists and is out of date. Overriding would actually work better for me, but I didn't realize that this was what was discussed. I can live with either approaches, as either have pros and cons, depending on the situation that a developer might face. Personally, the debuggers I work on are never installed, so having it be a fallback would be just find. Alternatively, we could think of having a routine that detects that the GDB binary is uninstalled, and relocate all the various directories differently. But that might be a bigger change that you'd want to, and I'm not sure this is something that the community might want (because it would add useless code for most users, only used by developers). -- Joel