From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18312 invoked by alias); 18 Sep 2012 20:40:11 -0000 Received: (qmail 18304 invoked by uid 22791); 18 Sep 2012 20:40:10 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from server-nat-6.cs.umd.edu (HELO bacon.cs.umd.edu) (128.8.127.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Sep 2012 20:39:58 +0000 Received: from [10.109.174.174] (129-2-129-155.wireless.umd.edu [129.2.129.155]) (Authenticated sender: khooyp) by bacon.cs.umd.edu (Postfix) with ESMTPSA id 2E60BB408A1; Tue, 18 Sep 2012 16:39:56 -0400 (EDT) Subject: Re: [PATCH] Warn about data-directory when failing to import Python "gdb" module Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Khoo Yit Phang In-Reply-To: Date: Tue, 18 Sep 2012 20:40:00 -0000 Cc: Joel Brobecker , Jan Kratochvil , GDB Patches Content-Transfer-Encoding: quoted-printable Message-Id: <45F70E7D-4B99-49B9-A160-76C0D3B9534F@cs.umd.edu> References: <20120917202241.GB4423@host2.jankratochvil.net> <20120917205828.GA28626@adacore.com> To: Khoo Yit Phang X-CSD-MailScanner-ID: 2E60BB408A1.AEFAA X-CSD-MailScanner: Found to be clean X-CSD-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-50, required 5, autolearn=not spam, ALL_TRUSTED -50.00) X-CSD-MailScanner-From: khooyp@cs.umd.edu X-CSD-MailScanner-Watermark: 1348605596.33687@EeNsMsWVOvd5fW/93jJSuQ 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/msg00383.txt.bz2 Hi, On Sep 17, 2012, at 5:04 PM, Khoo Yit Phang wrote: > Hi, >=20 > On Sep 17, 2012, at 4:58 PM, Joel Brobecker wrote: >=20 >>> 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". >>=20 >> 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. >>=20 >> 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. >=20 > Perhaps: >=20 > GDB is unable to find its support files. You may need to provide the -dat= a-directory flag to GDB (refer to the man pages for more details). I'd still like to add this warning: even with the data-directory patch I ju= st posted, it is still possible for this issue to occur, e.g., due to a bad= install. Some minor fixes: GDB is unable to find its auxiliary files. You may need to provide the -dat= a-directory flag to GDB (please refer to the manual for details). Yit September 18, 2012