This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Function syntax (Was: [RFC][patch 1/9] initial Python support)
- From: Daniel Jacobowitz <drow at false dot org>
- To: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, gdb-patches at sourceware dot org
- Date: Mon, 9 Jun 2008 12:53:02 -0400
- Subject: Re: Function syntax (Was: [RFC][patch 1/9] initial Python support)
- References: <m31w3ketw3.fsf_-_@fleche.redhat.com> <20080608182128.GA6248@caradoc.them.org> <1213018581.11485.7.camel@localhost.localdomain>
On Mon, Jun 09, 2008 at 10:36:21AM -0300, Thiago Jung Bauermann wrote:
> What about separating argument by commas, and treating each CSV as an
> expression to be evaluated? The Python function would then receive
> arguments as value objects.
>
> This also means that convenience variables (and variables in the
> inferior) would work.
>
> The Python function would also return a value object.
I've no objection to this; it sounds almost foolproof, though it would
be nice to have some examples and see how well it fits in practice.
--
Daniel Jacobowitz
CodeSourcery