This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: add ability to "source" Python code
- From: Eli Zaretskii <eliz at gnu dot org>
- To: elpa at tromey dot com
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 08 Feb 2009 06:08:17 +0200
- Subject: Re: RFC: add ability to "source" Python code
- References: <m3hc3520f9.fsf@fleche.redhat.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Tom Tromey <elpa@tromey.com>
> Date: Sat, 07 Feb 2009 18:16:10 -0700
>
> This patch adds Python support to the gdb "source" command.
> I added this after several user questions about how to do this.
> Also, due to completion, it is much more convenient than the
> equivalent "python" command.
Thanks.
> This could use a documentation review.
The documentation part is okay, except that I'd add a @cindex entry
there about sourcing Python code files.
However, I don't think I like the idea of GDB barfing if Python
support is not compiled in. I think it should simply try to interpret
the file as GDB scripting commands.
I also think we need a NEWS entry for this feature.