From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4576 invoked by alias); 24 Sep 2012 14:24:32 -0000 Received: (qmail 4566 invoked by uid 22791); 24 Sep 2012 14:24:28 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_NIX_SPAM,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 Sep 2012 14:24:15 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MAU00F00YAQFS00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Mon, 24 Sep 2012 16:24:14 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAU00EAWYODN2G0@a-mtaout22.012.net.il>; Mon, 24 Sep 2012 16:24:14 +0200 (IST) Date: Mon, 24 Sep 2012 14:24:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 2/2] Try to initialize data-directory by first searching for "data-directory" in the same directory as the gdb binary In-reply-to: To: Khoo Yit Phang Cc: brobecker@adacore.com, khooyp@cs.umd.edu, jan.kratochvil@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <836273jy7s.fsf@gnu.org> 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> 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/msg00501.txt.bz2 > From: Khoo Yit Phang > Date: Mon, 24 Sep 2012 09:14:21 -0400 > Cc: Khoo Yit Phang , Jan Kratochvil , GDB Patches > > > Well, for my part, I cannot wait for this patch to go in, because > > I've grown accustomed to being able to just run the GDB from the > > build directory. Having to install it now is an important downer > > for me. > > How about this solution, instead of patching the gdb binary, I can install a shell script into the build directory that contains: > > #!/bin/sh > exec $BUILDDIR/gdb/gdb -data-directory $BUILDDIR/gdb/data-directory "$@" > > and call this script "gdb-local" (or alternatively, call this script "gdb" and the rename the actual binary to "gdb.exe" in the build directory). Please don't. Invoking GDB from the build directory should "just work".