From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29711 invoked by alias); 18 Sep 2012 06:17:44 -0000 Received: (qmail 29701 invoked by uid 22791); 18 Sep 2012 06:17:42 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_NIX_SPAM,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Sep 2012 06:17:27 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MAJ005007XMGA00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Tue, 18 Sep 2012 09:17:21 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAJ004TA84XRDY0@a-mtaout20.012.net.il>; Tue, 18 Sep 2012 09:17:21 +0300 (IDT) Date: Tue, 18 Sep 2012 06:17:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Warn about data-directory when failing to import Python "gdb" module In-reply-to: <20120917205828.GA28626@adacore.com> To: Joel Brobecker Cc: khooyp@cs.umd.edu, jan.kratochvil@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83txuv26ti.fsf@gnu.org> References: <20120917202241.GB4423@host2.jankratochvil.net> <20120917205828.GA28626@adacore.com> X-IsSubscribed: yes 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 X-SW-Source: 2012-09/txt/msg00342.txt.bz2 > Date: Mon, 17 Sep 2012 13:58:29 -0700 > From: Joel Brobecker > Cc: Jan Kratochvil , GDB Patches > > > If you are running GDB from the build directory, please run gdb with > > the -data-directory flag set as appropriate, e.g., "builddir/gdb > > -data-directory builddir/data-directory". > > I expect that the majority of users will *not* be running GDB out > of the build directory. If they encounter the same issue with a > poorly installed GDB (Eg: They copied the GDB binary from one location > to another without copying the remaining support files), the error > message is not going to help them. > > I think that people who do run GDB from the build directory (a power > user setup) should be sufficiently knowledgeable, and we should try > to tailor the hints towards regular users. Is it possible to make GDB find its data-directory when it is run from the directory where it was built?