From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31773 invoked by alias); 24 Sep 2012 14:59:29 -0000 Received: (qmail 31764 invoked by uid 22791); 24 Sep 2012 14:59:28 -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 14:59:15 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id BEF021C7967; Mon, 24 Sep 2012 10:59:14 -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 mJOxmNQssV2C; Mon, 24 Sep 2012 10:59:14 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 682F61C6A46; Mon, 24 Sep 2012 10:59:14 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 4EB8FCCCE7; Mon, 24 Sep 2012 16:59:10 +0200 (CEST) Date: Mon, 24 Sep 2012 14:59: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: <20120924145910.GE4146@adacore.com> References: <21ACC598-F6B4-4117-BA7B-B316414DE9E3@cs.umd.edu> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/msg00504.txt.bz2 > How about this solution, instead of patching the gdb binary, I can > install a shell script into the build directory that contains: In addition to Eli's comments, a shell script isn't debuggable. I know we are walking on thin ice with this data-directory issue, but I think it's worth our trouble in this case. The side-effect of your _gdb patch is something that's really important to me; that's why I am pushing a little harder than usual. As far as I could tell, Jan and yourself were discussing two patches that should work. You like neither of them, but short of having a solution that either of you likes, why not just commit one of them? 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. -- Joel