This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]