From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22089 invoked by alias); 25 Mar 2014 01:20:18 -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 22073 invoked by uid 89); 25 Mar 2014 01:20:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ve0-f174.google.com Received: from mail-ve0-f174.google.com (HELO mail-ve0-f174.google.com) (209.85.128.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 25 Mar 2014 01:20:15 +0000 Received: by mail-ve0-f174.google.com with SMTP id oz11so6631185veb.33 for ; Mon, 24 Mar 2014 18:20:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=1qkeQBhgiuMtOMK4xbEX9EzrXXrh388pRwSCPkc5VRQ=; b=ixzB2y73MblFlEs7pdZZF1fSp9GQ9C8swDwAU+t8lV1bcyVGcR4xCSwfLQ9FYWRiLr uRlmA32kT2KiRqtWNPU8x6ADJ60N7bg3yQNqXk7w3Zy+tfkGi0nN1p7Iwdz/yhGOAC/7 X2VgQMg6SaryvMvIkRUg5v0PX9gRvp0+8FH7xI6sNpZjckei3E4Srd7tWyYK/66mN3zb 7yCrF8nYcoZum2hn8ZoqlhC7bBfiTD27W5BjguNDMtl3XAfIAHdKoahee2d9lzmgZGSn hTLgi5nvgRKDMJ4kat+sT5we8GM75Gfv1H9uVhMLqSHZuPbpoU2xcHu2Qad70VHBPcAf DThA== X-Gm-Message-State: ALoCoQn3AjZYAdldhRPYWy3gogu81tvqgL4DofoMtc+kqJ8nTGsUTr4/DMzrA/lLmFwV4QRoUpe6jGV7UL9h9Pbq83gG8G2BQ9wUBaEk/bwbClYdbQHa2+eFRz7PNV1Xx21B7AbJkKUp+uPYjYugzO03WKe/yqMaX3fYw0fL6Lfp3huAW8e63YLZwPC1eQGb2cBCDxiC1OfbjkYAoDz0VXzQvP58mbTWWQ== MIME-Version: 1.0 X-Received: by 10.52.142.10 with SMTP id rs10mr45135301vdb.3.1395710413640; Mon, 24 Mar 2014 18:20:13 -0700 (PDT) Received: by 10.52.13.101 with HTTP; Mon, 24 Mar 2014 18:20:13 -0700 (PDT) In-Reply-To: References: <21272.60289.723000.990365@ruffy.mtv.corp.google.com> <834n3aqyaa.fsf@gnu.org> <83y50lq2b8.fsf@gnu.org> Date: Tue, 25 Mar 2014 01:20:00 -0000 Message-ID: Subject: Re: [PATCH, doc RFA] New option -B: simplify running gdb from build directory From: Doug Evans To: Eli Zaretskii Cc: gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00587.txt.bz2 On Mon, Mar 24, 2014 at 6:02 PM, Doug Evans wrote: > I just want to stop having to type --data-directory all the time when > I run gdb under gdb in emacs (without doing hacks like having a > special emacs command just for debugging gdb). It's unlikely ISTM the > community is going to agree on a heuristic for determining whether gdb > is being run from the build directory any time soon, so let's just let > it go for now. Typing "./gdb -B" is fine by me. I can think of > alternatives (eg., name the binary in the build directory as xgdb and > have gdb check argv[0]) but I prefer -B. Hah! Gotta love the crystalization of thinking that happens after one clicks Send. For the moment running from the build directory only requires passing --data-directory. I'm going to add a -D shortcut for --data-directory and make gdb expand out relative paths for data-directory (it's kinda a bug that it doesn't now). That way I can type ./gdb -D . which is good enough. :-)