From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13408 invoked by alias); 8 Oct 2012 16:33:11 -0000 Received: (qmail 13398 invoked by uid 22791); 8 Oct 2012 16:33:10 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-yh0-f41.google.com (HELO mail-yh0-f41.google.com) (209.85.213.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Oct 2012 16:33:05 +0000 Received: by mail-yh0-f41.google.com with SMTP id 47so965547yhr.0 for ; Mon, 08 Oct 2012 09:33:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-system-of-record :x-gm-message-state; bh=4p947+amoUnYKgqX0rCg+1YakvFttcE8ikDefKvtueE=; b=Sx6fZvzIJFSTDtaxbgHWoYpsekhp48uq3h0b7defXMNXOL7m69IOcNZsmY11QDzGBu 8Ib3RAFAf7eVR61pzesWSLBtKyBiXue/ILE5mb6yOi2TfilIkeBKCrjpcsENQIVhyRna xmkEXS4sVIzx8mVyGONzjtDYm+hnq9sif/ez8rbNwWj/Ida7D6uN/18BA+gLJQfbrSku 5Sx7ZXuLGRFOzE+YXAVn8Ddxv4bkCPR8jzgF4y1xUFSRq/+LJsqNHzd3jkGF77uJYS9G w6+X3LjLzgfYe7FwTrj8a2Mpd9DfykVd4mjHHs/Y1mMmjUWKSlqF5NEdAT6U1yALXRwf LKYw== MIME-Version: 1.0 Received: by 10.58.4.193 with SMTP id m1mr10631555vem.44.1349713984975; Mon, 08 Oct 2012 09:33:04 -0700 (PDT) Received: by 10.52.88.203 with HTTP; Mon, 8 Oct 2012 09:33:04 -0700 (PDT) In-Reply-To: <970CCEFD-FF30-4ED4-9ED9-F9C6A5400120@cs.umd.edu> References: <9F52A338-A158-44DC-90C1-F46503859613@cs.umd.edu> <285502C6-1395-4049-9D55-031EDA3AD06D@cs.umd.edu> <20120924170348.GI4146@adacore.com> <20120927091737.GB2980@adacore.com> <20121004000840.GI3028@adacore.com> <20121004013358.GJ3028@adacore.com> <20121004145105.GP3028@adacore.com> <970CCEFD-FF30-4ED4-9ED9-F9C6A5400120@cs.umd.edu> Date: Mon, 08 Oct 2012 16:33:00 -0000 Message-ID: Subject: Re: [PATCH] Also install data-directory into the build directory as computed by relocate_gdb_directory From: Doug Evans To: Khoo Yit Phang Cc: Joel Brobecker , Jan Kratochvil , GDB Patches Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-Gm-Message-State: ALoCoQlueNjTRAPjCZ8c3Dce5pgnFbpg8Cn84VpAYrdlDD6zF2iptemq+UYEPbrpiA7LisokLjPBNfVExiBfWzzSalvQ3YinPaDjHF9f/6jhY88qT+gsTdoL2Bh7ULlIoXsZc7Qssm+ep9gSr1ZcvNDs7Tw/gkCsykMJIox6wYDVsWA6Xm/Eo3kdbPUbWqrvirtA0j7z3otnLBqG5mSW3D4Dt000ON4u4A== 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-10/txt/msg00133.txt.bz2 On Sat, Oct 6, 2012 at 12:02 PM, Khoo Yit Phang wrote: > I prefer just installing data-directory into $BUILDDIR/share/data-directo= ry, which is simple and works as long as gdb isn't configured with --bindir= , --exec-prefix, and/or --with-gdb-datadir that are too unusual. It should = cover most purposes of running gdb from the build directory, since I don't = see much reason to change --bindir, --exec-prefix, and/or --with-gdb-datadi= r if gdb won't be installed, unless for testing those flags, in which case = gdb will likely have to be installed anyways. Does anyone currently have a = use case I'm missing? I'm not entirely comfortable with having normal makes (as in "make all") create files outside of its build directory (and by this I mean $obj/gdb/../anything). [And obviously I'm not including "make install" here. :-)] I'd prefer passing -bd (for build directory), for example. [Not the best name choice since -b specifies the serial port baud rate. -bt for build tree, and -B are alternatives.] I could also go with a configure option to create a second gdb binary for use in the build tree. I would never use it, but as long as those that want it agree to maintain it, 'tis ok with me. Neither the testsuite, nor anything else, can depend on it - it would just be for developer convenience sake.