From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16866 invoked by alias); 30 Sep 2013 22:36:39 -0000 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 Received: (qmail 16857 invoked by uid 89); 30 Sep 2013 22:36:39 -0000 Received: from mail-vc0-f201.google.com (HELO mail-vc0-f201.google.com) (209.85.220.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 30 Sep 2013 22:36:39 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mail-vc0-f201.google.com Received: by mail-vc0-f201.google.com with SMTP id lf11so559287vcb.4 for ; Mon, 30 Sep 2013 15:36:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:subject:in-reply-to :references; bh=D9k/KwIIEXkAzrEq1r9nyFzpjidM+CH5lcf2JDaAZsw=; b=PShjM1pZxj++DjKgB3b+Pejm2CWMEXN2qY+jYZCLA/5cBf1WW1nkwMJXqSPkgqiRDN hTplc4MahvWyHF93tdr/L8aSAeMZxaALUWtnuvFh9J71749YNym/SMrq8iW3s67jleT8 MpqMUNLi+DeSh3vrvqa9KlrUIxFICr0jegXIdJRHNaPD5ZHKyzSfe4hPjGAzFCjD5j6g USkCRNLEKYnu0oc9P3PZnCOcdXWY42JwK2hAnUlbfAucZV1mtyjPBUUGE47TJrKCC0SA 8xTUOYyoMnyN5OEsFg/xb4pyOiAre76wMjsLOJd/uKepZysoCvW9hKsR/ApkT402Fqbg GOdQ== X-Gm-Message-State: ALoCoQn3BwD04h4qnkpVSlx+61WNycL2QW/9ha5K06jVh/l50cAHl7SNa1c+mZ4DXjuDU9vWj97TBMJMf14GgqneN21qESIj20YFHYkUnZ/78lznXfc0ZNygtde8f2NMl3DXzIvnaBIikATxlTYbbDpdR9RabD8Lrl5n/+SHTvKQpv3BzzA5A4oS5xK62X0X8NQPoP1K4H6drUoP4310roxYBV19PcU7GogRsVwrU2dk42meEXqza80= X-Received: by 10.236.32.74 with SMTP id n50mr5816348yha.13.1380580596314; Mon, 30 Sep 2013 15:36:36 -0700 (PDT) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id k45si145085yhn.4.1969.12.31.16.00.00 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Mon, 30 Sep 2013 15:36:36 -0700 (PDT) Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.17.128.44]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTP id 981E35A40F3 for ; Mon, 30 Sep 2013 15:36:35 -0700 (PDT) From: Doug Evans MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <21065.64755.63780.888296@ruffy.mtv.corp.google.com> Date: Mon, 30 Sep 2013 22:36:00 -0000 To: gdb-patches@sourceware.org Subject: Re: [patch] make run In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg01030.txt.bz2 Doug Evans writes: > Hi. > Since we can't agree on making gdb runnable from its build directory > (without having to manually specify --data-directory) > I plan to commit this patch (if there are no objections). > > I plan to add an entry for it in the Hints section of the > wikified internals manual as well. > https://sourceware.org/gdb/wiki/InternalsManual And with the requisite .PHONY. [thanks SamB] 2013-09-30 Doug Evans * Makefile.in (GDBFLAGS): New variable. (run): New rule. Index: Makefile.in =================================================================== RCS file: /cvs/src/src/gdb/Makefile.in,v retrieving revision 1.1270 diff -u -p -r1.1270 Makefile.in --- Makefile.in 25 Sep 2013 23:17:11 -0000 1.1270 +++ Makefile.in 30 Sep 2013 22:34:02 -0000 @@ -178,6 +178,9 @@ INTL_CFLAGS = @INCINTL@ # Did the user give us a --with-gdb-datadir option? GDB_DATADIR = @GDB_DATADIR@ +# Flags to pass to gdb when invoked with "make run". +GDBFLAGS = + # Helper code from gnulib. GNULIB_BUILDDIR = build-gnulib LIBGNU = $(GNULIB_BUILDDIR)/import/libgnu.a @@ -1339,6 +1342,10 @@ data-directory/Makefile: data-directory/ CONFIG_LINKS= \ $(SHELL) config.status +.PHONY: run +run: Makefile + ./gdb$(EXEEXT) --data-directory=`pwd`/data-directory $(GDBFLAGS) + jit-reader.h: $(srcdir)/jit-reader.in $(SHELL) config.status $@