From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30129 invoked by alias); 17 Sep 2012 20:58:47 -0000 Received: (qmail 30120 invoked by uid 22791); 17 Sep 2012 20:58:47 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Sep 2012 20:58:34 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 164511C7B2B; Mon, 17 Sep 2012 16:58:33 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Imzm8M3ZNGc7; Mon, 17 Sep 2012 16:58:33 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 43B441C7B2A; Mon, 17 Sep 2012 16:58:32 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 109B7C711F; Mon, 17 Sep 2012 13:58:29 -0700 (PDT) Date: Mon, 17 Sep 2012 20:58:00 -0000 From: Joel Brobecker To: Khoo Yit Phang Cc: Jan Kratochvil , GDB Patches Subject: Re: [PATCH] Warn about data-directory when failing to import Python "gdb" module Message-ID: <20120917205828.GA28626@adacore.com> References: <20120917202241.GB4423@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00331.txt.bz2 > 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. -- Joel