From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31101 invoked by alias); 10 Feb 2009 03:48:45 -0000 Received: (qmail 31089 invoked by uid 22791); 10 Feb 2009 03:48:44 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Feb 2009 03:48:38 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id BF82F10597; Tue, 10 Feb 2009 03:48:35 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 85F4310180; Tue, 10 Feb 2009 03:48:35 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LWjbu-0005ED-Fc; Mon, 09 Feb 2009 22:48:34 -0500 Date: Tue, 10 Feb 2009 03:48:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: RFC: add ability to "source" Python code Message-ID: <20090210034834.GA20077@caradoc.them.org> Mail-Followup-To: Pedro Alves , Tom Tromey , gdb-patches@sourceware.org References: <200902100000.22671.pedro@codesourcery.com> <200902100235.59897.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200902100235.59897.pedro@codesourcery.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes 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/msg00217.txt.bz2 On Tue, Feb 10, 2009 at 02:35:59AM +0000, Pedro Alves wrote: > On Tuesday 10 February 2009 01:27:32, Tom Tromey wrote: > > >>>> "Pedro" == Pedro Alves writes: > > > > Pedro> Could you explain for the archives why this is better than having > > Pedro> the script itself tell GDB that it's running python?  Either > > Pedro> through something similar to a shebang, or starting the script with > > Pedro> "python" (does that work?) ?  I think you've discussed this before, > > Pedro> what were the limitations you found? > > > > I think you may be thinking of invoking a python script using > > "#!.../gdb -something".  This patch does not cover that case.  That is > > a separate patch, which I haven't submitted. I had something like "# *-python-*" in mind... :-) -- Daniel Jacobowitz CodeSourcery