This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [python] integrate with gdb event loop
>>>>> "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))
Maybe that's the lisper in me talking.
I don't mind if you want to add the capability.
Tom