-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add a non-blocking interface to check_gdb_interrupt
#36
Comments
Yeah, this is something I've been thinking about as well. More generally, this would fall under the Roadmap item "Exposing an async/await interface", which isn't necessarily I haven't put too much thought into the implementation, but one simple approach might be to simply plumb-through the underlying The tricky thing is how exactly that The approach that I'm leaning towards would be to modify the Individual The annoying part with both of these approaches is that I foolishly leaked the implementation details of I'm not entirely sure when I'll have time to play around with these changes, but hopefully I've given you some idea of how you might tackle the problem. The first approach is pretty quick-and-dirty, but if you're just looking to get something up and running locally, it might be the way to go. Alternatively, if you've got some time to spare and are willing to keep working on |
check_gdb_interrupt
I found some time to sketch out a rough implementation of what this API might look like in the While the user-facing bits of the API are pretty clean, the internal implementation is an absolute mess. Check out the code in the vCont hander in One fundamental issue I encountered while working on this implementation is that I'd still want to support running Long story short - while I'm not ready to merge any code to master just yet, I do have a fairly concrete idea of how to implement this API, and hope to find some more time and energy to work on it at some point down the line. |
I just merged a new top-level state-machine based API to To quote the new
As such, once release |
The current
SingleThreadOps::resume
takes a callbackcheck_gdb_interrupt
which is expected to be called periodically to check if an interrupt packet is sent by the GDB client.Instead of this design, can we have an API that lets us block on a
select()
,poll()
or a similar syscall?The text was updated successfully, but these errors were encountered: