Re: RFC: add ability to "source" Python code

Daniel Jacobowitz
2009-02-10T03:48:45Z

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 <pedro@codesourcery.com> 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