-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
gdb.debug stops at every breakpoint, running slow #2433
Comments
I noticed it being slow too but can't remember if it ever was faster. There weren't any changes to the gdb api bridge that I'm aware of. Do you have an idea @mephi42? I think gdb printing something whenever it hits a breakpoint is normal though. Can you provide a setup for reproduction of the issue please? |
I don't recall it being too long, or maybe I was using qiling at that time and mixed it up with pwntools. Regardless, here is an example that I ran to test this issue. |
I also think that the breakpoint printing is normal. The annoying part for me is that it stops when the screen becomes full; I use Performance-wise things can definitely be better. IMHO the biggest bottleneck is the polling loop in Ideally we should find a way to integrate the rpyc's event loop with that of gdb. An obvious solution to serve rpyc on a separate thread is unsafe w.r.t. GDB. But perhaps something like the following hybrid approach would work?
I would be interesting for me to implement something like this, but I can't promise I'll have the time in the near future. |
I have tried reducing I notice two instances when it has significant delays:
|
Regarding the slow initialization, could you please try #2435? I used this locally for a while, but never got around to submitting it. |
Is it intended for the newly opened gdb terminal to keep displaying the "Breakpoint 1" message when it hits a breakpoint? How do i disable this or better yet, how do I gdb.debug without the new terminal opening as I just want it to print the values purely based off my python script?
When I ran gdb.debug a few months back, the same script managed to run through without any issues and without any delay. After the update of rpyc or gdb or pwntools (im not sure which is the cause), it would start displaying the breakpoints continuously, would run slowly, and may even be unable to run properly.
The text was updated successfully, but these errors were encountered: