From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1573 invoked by alias); 30 Nov 2010 04:22:20 -0000 Received: (qmail 1565 invoked by uid 22791); 30 Nov 2010 04:22:19 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Nov 2010 04:22:14 +0000 Received: (qmail 22348 invoked from network); 30 Nov 2010 04:22:12 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 30 Nov 2010 04:22:12 -0000 Date: Tue, 30 Nov 2010 04:22:00 -0000 From: Daniel Jacobowitz To: Doug Evans Cc: gdb-patches@sourceware.org Subject: Re: [RFA] Don't install gdb.PYTHONDIR if -nx Message-ID: <20101130042206.GA1206@caradoc.them.org> Mail-Followup-To: Doug Evans , gdb-patches@sourceware.org References: <20101129003949.502FC246199@ruffy.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101129003949.502FC246199@ruffy.mtv.corp.google.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-11/txt/msg00494.txt.bz2 On Sun, Nov 28, 2010 at 04:39:49PM -0800, Doug Evans wrote: > Hi. > > I was testing a change to gdb/command/pretty_printers.py > and was tripping over the fact that gdb was picking up > the installed copies. > The testsuite loads the copies from the build dir, but > python keeps the one already installed during gdb startup. > > This patch only installs gdb.PYTHONDIR (and only runs > gdb/__init__.py which installs the python-based gdb commands) > if not running with -nx. If this is the problem you're trying to solve, I think a new option is better - but it's not -np. Why not an option to set gdb.PYTHONDIR before loading anything? That said, -np may be useful too. But at that point it becomes more of a question whether it should be part of -nx. -- Daniel Jacobowitz CodeSourcery