Re: recursion limit exceeded in Python API, but there's only one function in traceback

Phil Muldoon
2014-10-17T14:20:18Z

On 17/10/14 11:52, Ã–mer Sinan AÄŸacan wrote:
> IMO, something like dont_block would be more useful for me. What I would expect
> from that argument is that when it's True then `gdb.execute` would return
> immediately after GDB starts running the command.
>
>> A workaround would be to post any gdb.execute statements into the GDB event
>> loop. See gdb.post_event. That will return immediately and the gdb.execute
>> function will be scheduled to be called in the event loop. Note there is no
>> guarantee when this is. But as long as GDB is not busy processing other
>> events it usually means right away.

> Do you think adding something like `dont_block` would be hard? Maybe I can hack
> on that this weekend.

Hi,

The patch has already been written (I had to fix it for a RH bugzilla
entry). I just have not gotten around to posting it upstream yet. I
will do that very soon. But if you are interested, the patch is here:

https://bugzilla.redhat.com/show_bug.cgi?id=1116957

Cheers

Phil