On Tue, Nov 7, 2023 at 7:29 PM Tom Tromey wrote: > Nearly every DAP request implementation forwards its work to the gdb > thread, using send_gdb_with_response. This patch refactors the > 'request' decorator to make this automatic, and to provide some > parameters so that the unusual requests can express their needs as > well. > > In a few spots this simplifies the code by removing an unnecessary > helper function. This could be done in more places as well if we > wanted. > > The main motivation for this patch is that I thought it would be > helpful for cancellation. I am still working on that, but meanwhile > the parameterization of 'request' makes it easy to handle the > 'notStopped' response as well. > > I can confirm this commit introduces no regressions with Fedora Rawhide ppc64le. Also I like the simplification this brings. Thanks, Alexandra