diff options
author | Tom Tromey <tromey@adacore.com> | 2023-11-06 13:31:17 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-11-17 08:26:02 -0700 |
commit | c98921b258b55272c5b4066d96441e4e07626eb2 (patch) | |
tree | 751fc805e97c99ec1ee22bd5d1802f92fc11e1e2 /gdb/python/py-mi.c | |
parent | 619a8a364d6cdc43d6677f86369aa2b5d1a1cc0f (diff) | |
download | binutils-c98921b258b55272c5b4066d96441e4e07626eb2.zip binutils-c98921b258b55272c5b4066d96441e4e07626eb2.tar.gz binutils-c98921b258b55272c5b4066d96441e4e07626eb2.tar.bz2 |
Automatically run (most) DAP requests in gdb thread
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.
Reviewed-by: Kévin Le Gouguec <legouguec@adacore.com>
Diffstat (limited to 'gdb/python/py-mi.c')
0 files changed, 0 insertions, 0 deletions