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

Ömer Sinan Ağacan
2014-10-17T09:31:33Z

I'm still having this problem. I just tried this:

def handler():
gdb.execute("continue")
print "continue returned"

This doesn't print anything, until the script fails with "maximum
recursion depth". Then it prints lots of "continue returned" lines.

So the problem is `gdb.execute` doesn't immediately return and that's
causing Python stack to grow, because GDB is calling this function
without returning anything to previous calls.

I think I need a version of `gdb.execute` that returns immediately.
ie. async version or something like that. Is such a thing possible?

Thanks again.