-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waiting for a response after the response #37
Comments
Hello, I concur. |
I added this because oftentimes a valid response would be returned, but gdb had not finished writing all its responses. I get where you are coming from though. I will add a new keyword argument, |
Well, I actually like the Unix behavior : a two level timeout. |
Oh, hmm. Are you both using windows? It's been a while since I added that but my guess is there was no technical reason it wasn't done. I don't use windows so I probably just forgot to add it. Would that be a good solution instead of |
Looks like, yes. |
Hello cs01! I'm using pygdbmi on windows and I would really like to cut down on waiting times. I implemented the same timeout mechanism as the unix codepath uses in my fork. Though I can't get all tests to succeed (only test_controller fails), but this was the case before I made any changes. |
Hi, Many thanks. |
Hey @cs01, did you consider including the changes? |
Oh sorry I didn't know this was blocked on me. I have no objection to it and would be happy to review a PR, but I am not able to make this change myself. |
Hello @cs01. I think your idea with |
I don’t have the time to work on open source any more but if you submit a pr, @barisione or I can review it |
pygdbmi/pygdbmi/gdbcontroller.py
Line 291 in bee475b
Hello! If I understand correctly, the one way to exit from mentioned While loop - timeout. Maybe it could be better to add something like
because right now, for example, inserting several breakpoints in windows takes (N_breakpionts * timeout) seconds. GdbController could already have a responce, but continue to wait a timeout.
The text was updated successfully, but these errors were encountered: