From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 315 invoked by alias); 17 Sep 2012 21:04:23 -0000 Received: (qmail 305 invoked by uid 22791); 17 Sep 2012 21:04:22 -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; Mon, 17 Sep 2012 21:04:09 +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 B8A14B40748; Mon, 17 Sep 2012 17:04:07 -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: <20120917205828.GA28626@adacore.com> Date: Mon, 17 Sep 2012 21:04:00 -0000 Cc: Khoo Yit Phang , Jan Kratochvil , GDB Patches Content-Transfer-Encoding: quoted-printable Message-Id: References: <20120917202241.GB4423@host2.jankratochvil.net> <20120917205828.GA28626@adacore.com> To: Joel Brobecker X-CSD-MailScanner-ID: B8A14B40748.AF97E 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: 1348520647.99078@f/y5WG/KkoOPAZZzrj6crA 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/msg00332.txt.bz2 Hi, On Sep 17, 2012, at 4:58 PM, Joel Brobecker wrote: >> 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. Perhaps: GDB is unable to find its support files. You may need to provide the -data-= directory flag to GDB (refer to the man pages for more details). Yit September 17, 2012