From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12201 invoked by alias); 30 Sep 2013 22:29:16 -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 12190 invoked by uid 89); 30 Sep 2013 22:29:15 -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:29:15 +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 lf11so558616vcb.4 for ; Mon, 30 Sep 2013 15:29:12 -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:to:subject:date:message-id:mime-version :content-type; bh=zazcwwuK5gPK3NlExjNUpvsp9GxbGxC4aeQK+yjI6bw=; b=Jcga0uMxlH//SpeZiBC0CUCIYMW/2SX7nEZeB+Dt0ESeYYzdiwwtcTdjT3AAQHkgmw fzGwfkbvAEcV88apZouRN/Dy0ZyVJff+yJdr7sR1eFo5evWXOxC4KuMtNig6molPLb0Z g3Uo/CmBtmAKxbKe+ovD8V485hlZ6li94Kc5bZO9uFoDbLTJ4biULgI+WiSDhbGOKRkn ojkA2+OLPaIutymitlccD9GjvnrEp0dpiZRvGAbL1TXP8u3/uBs7o5KUIMjYcTZU6qai Z82UpRYL1xhWk/9Xoe4qBHqAuEblwHjKFPEIdY8Hsp2kqXJtfR7RlXaoP2kPfIdVDUq0 Nz8Q== X-Gm-Message-State: ALoCoQkgM7zfrw9vzJikLm8cIfoGuBURLN/4hHqOxBhd9BLfGYZZF+GLDqNGBjE95RnmpIx2cLSz+apIQeIIL1spDhhU5hnr/cqMdxSfY+GV02bWbeTNYRO9gJnRQv9LjQd72reLA10Y7QMuQFie5gARZZ4FUMd4dw9ZwYmJACU4g8lI6L+Pftce/vtPfRVrgqNBj6l/JZMdLzvGzKJgOKdHGV71t7rtHFjADD5l5Ql04m4VaFe8zK0= X-Received: by 10.236.20.114 with SMTP id o78mr5368697yho.8.1380580152089; Mon, 30 Sep 2013 15:29:12 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id k45si143541yhn.4.1969.12.31.16.00.00 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Mon, 30 Sep 2013 15:29:12 -0700 (PDT) Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.17.128.44]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id B4A2131C022 for ; Mon, 30 Sep 2013 15:29:11 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [patch] make run Date: Mon, 30 Sep 2013 22:29:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg01029.txt.bz2 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 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:17:58 -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,9 @@ data-directory/Makefile: data-directory/ CONFIG_LINKS= \ $(SHELL) config.status +run: Makefile + ./gdb$(EXEEXT) --data-directory=`pwd`/data-directory $(GDBFLAGS) + jit-reader.h: $(srcdir)/jit-reader.in $(SHELL) config.status $@