From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12327 invoked by alias); 11 Feb 2009 21:26:18 -0000 Received: (qmail 12294 invoked by uid 22791); 11 Feb 2009 21:26:16 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f18.google.com (HELO mail-fx0-f18.google.com) (209.85.220.18) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Feb 2009 21:26:09 +0000 Received: by fxm11 with SMTP id 11so843481fxm.0 for ; Wed, 11 Feb 2009 13:26:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.212.2 with SMTP id o2mr42748muq.69.1234387540613; Wed, 11 Feb 2009 13:25:40 -0800 (PST) In-Reply-To: References: <200902100000.22671.pedro@codesourcery.com> <20090210034834.GA20077@caradoc.them.org> <1234267091.13871.4.camel@localhost.localdomain> <20090211060911.GB4225@adacore.com> <20090211203921.GC13021@adacore.com> Date: Wed, 11 Feb 2009 21:26:00 -0000 Message-ID: <8ba6bed40902111325h3625a268mf0da744e25dcf409@mail.gmail.com> Subject: Re: RFC: add ability to "source" Python code From: Matt Rice To: Eli Zaretskii Cc: Joel Brobecker , tromey@redhat.com, bauerman@br.ibm.com, drow@false.org, pedro@codesourcery.com, gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00261.txt.bz2 On Wed, Feb 11, 2009 at 1:06 PM, Eli Zaretskii wrote: > > Also, would an arbitrary Python script necessarily do anything useful > in GDB? Some of them probably will, but not just any one, I think. > Yes, (gdb) python execfile("/home/ratmice/bar.py") (gdb) python foo() foo where the foo function is defined in bar.py. so it acts just like 'source' in a shell i would imagine.