From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18651 invoked by alias); 17 Feb 2009 20:30:49 -0000 Received: (qmail 18633 invoked by uid 22791); 17 Feb 2009 20:30:46 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Feb 2009 20:30:40 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n1HKT87n005076; Tue, 17 Feb 2009 15:29:09 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n1HKT8dG014398; Tue, 17 Feb 2009 15:29:08 -0500 Received: from opsy.redhat.com (vpn-13-59.rdu.redhat.com [10.11.13.59]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n1HKT5pL010865; Tue, 17 Feb 2009 15:29:06 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id EE7265080FB; Tue, 17 Feb 2009 13:29:04 -0700 (MST) To: Eli Zaretskii Cc: Joel Brobecker , bauerman@br.ibm.com, drow@false.org, pedro@codesourcery.com, gdb-patches@sourceware.org Subject: Re: RFC: add ability to "source" Python code References: <20090211203921.GC13021@adacore.com> <20090211220118.GE13021@adacore.com> <20090212062654.GG13021@adacore.com> <20090213022246.GA5401@adacore.com> <20090217000746.GA3812@adacore.com> From: Tom Tromey Reply-To: Tom Tromey Date: Tue, 17 Feb 2009 20:37:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Tue\, 17 Feb 2009 06\:12\:30 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-02/txt/msg00364.txt.bz2 Joel> 1. If we have filename-extension detection (controlled by a Joel> setting), do we need the "-p" switch at all? Eli> I'm okay with this, but I think Tom had some valid reasons for Eli> having Python scripts that don't have a certain extension. It is a convenience when using scratch files. In practice I don't use -p much. I don't mind removing it. Joel> Now that I've written all this and that it has given me a chance Joel> to think this over a little more, I like the idea of falling back Joel> to GDB scripts less and less. So much so that I'm wondering whether Joel> using a different command than "source" might be better? "pysource" Joel> for instance? I considered this early on and rejected it, because "source" is clearer and "felt natural". FWIW you can write pysource in a few lines of Python, if you really want to go that route. People who miss the "source" feature can just do this themselves. Thanks for trying to find a compromise solution. Tom