From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27053 invoked by alias); 25 Mar 2014 01:28:08 -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 27042 invoked by uid 89); 25 Mar 2014 01:28:07 -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-f172.google.com Received: from mail-ve0-f172.google.com (HELO mail-ve0-f172.google.com) (209.85.128.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 25 Mar 2014 01:28:06 +0000 Received: by mail-ve0-f172.google.com with SMTP id jx11so6710530veb.3 for ; Mon, 24 Mar 2014 18:28:04 -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=JMLJyvAZ2cyASDqQPHtL9Ky9EXIwLPWlaYUzvwuTu5U=; b=gdwdAPuZ1gECJLaXSCBbAZ5t96ZHqgEHDn0bfR17vToZaEOuHbXVwigdgaCG7GzQFZ zvkdP9Ggo81rnadR19nkzEn8im2ThstAbQFE2SAQYcITs7MSVENouaRvm7mh8bJXVlJY XLSJNJaB39OdwoajBKRjX7P5wY+aoMzcMfa6YhUkbRpM9daGK4olBPIrsboFeweVhb4X leu7mocOf9/c3AZwFkEuXT78YPaZPAlr7fTmqXCoxoILR2nQ9UKYhH+m+GlUskP95fI+ /hRCuRSi7PZcfGdeZH75OEci4AggvOdZCzxmW04vFsXk8giaq+YUB4+RNCKZy6BZS1d1 EMFg== X-Gm-Message-State: ALoCoQk+kuepXJEghFRtcafJ1xEbNARgGzW5WQ9ofbpP3vBqwYZtqntLHtWFw5WAyiQ4uhxx1kVlgarKVsxWmVGGs9cMSd8SrI7NqAeHmiU5aFQ4BJk2uhLRjs7xTdGTLhKivJuAPRihAoz5bmuIqvECxtpcaPGX/arNxKpajvslzPWrsdRqym1Jh1PkJgLpJNTVC4FMXKIb4jF86Y2Xi8i/HreN1Zqc0Q== MIME-Version: 1.0 X-Received: by 10.52.51.197 with SMTP id m5mr14149983vdo.9.1395710884741; Mon, 24 Mar 2014 18:28:04 -0700 (PDT) Received: by 10.52.13.101 with HTTP; Mon, 24 Mar 2014 18:28:04 -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:28: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/msg00588.txt.bz2 On Mon, Mar 24, 2014 at 6:20 PM, Doug Evans wrote: > 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. :-) Bleah. That would have to be typed as ./gdb -D da or ../gdb -D ../da if run from the testsuite directory which maybe I can live with.