Re: recursion limit exceeded in Python API, but there's only one function in traceback
Ömer Sinan Ağacan <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAMQQO3kehAHCMQkEOsU8kak5j=CdwZqKEy6_nHubWJF4F3A+Lg@mail.gmail.com> |
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.