From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23443 invoked by alias); 27 Dec 2013 20:15:21 -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 23420 invoked by uid 89); 27 Dec 2013 20:15:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout21.012.net.il Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Dec 2013 20:15:14 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MYH00900EQLDB00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Fri, 27 Dec 2013 22:15:11 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MYH0091YEXA9U70@a-mtaout21.012.net.il>; Fri, 27 Dec 2013 22:15:11 +0200 (IST) Date: Fri, 27 Dec 2013 20:15:00 -0000 From: Eli Zaretskii Subject: Re: [RFC] New option -B: simplify running gdb from build directory In-reply-to: To: Doug Evans Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <838uv63vav.fsf@gnu.org> References: X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00968.txt.bz2 > From: Doug Evans > Date: Fri, 27 Dec 2013 11:42:29 -0800 > > The "make run" Makefile rule simplifies running gdb from the shell, > but it doesn't simplify running gdb from gdb: I'm always typing > "--data-directory=$(pwd)/data-directory". > And since we can't agree on a way to let gdb auto-detect being run > from the build directory, how about this? Thanks. However, if we cannot agree on the above, why would adding a new option facilitate agreement? Personally, this way of solving the issue makes little sense to me: if I need to specify a special option to GDB, I can be expected to specify --data-directory explicitly.