This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [python] integrate with gdb event loop
El miÃ, 10-12-2008 a las 15:08 -0700, Tom Tromey escribiÃ:
> >>>>> "Thiago" == Thiago Jung Bauermann <bauerman@br.ibm.com> writes:
>
> >> +@defun post_event event
> >> +Put @var{event}, a callable object taking no arguments, into
> >> +@value{GDBN}'s internal event queue.
>
> Thiago> Is there a reason why the callable doesn't take arguments? At first
> Thiago> glance, it seems the mechanism would be more useful if it allowed an
> Thiago> argument to be stored with the event and then provided to the callable.
>
> I figured folks would just use:
>
> gdb.post_event (lambda: function (arg))
Ah! I didn't think of that. Very elegant.
> Maybe that's the lisper in me talking.
Yes, I guess so. :-)
> I don't mind if you want to add the capability.
Ok, will do.
--
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center