This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Function syntax (Was: [RFC][patch 1/9] initial Python support)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]