GDB (xrefs)
|
Classes | |
class | Server |
Functions | |
send_event (event, body=None) | |
_check_not_running (func) | |
request (str name, *bool response=True, bool on_dap_thread=False, bool expect_stopped=True) | |
capability (name, value=True) | |
client_bool_capability (name) | |
initialize (**args) | |
terminate (**args) | |
disconnect (*bool terminateDebuggee=False, **args) | |
Variables | |
dict | _capabilities = {} |
dict | _commands = {} |
_server = None | |
|
protected |
Definition at line 168 of file server.py.
References func.
Referenced by gdb.dap.server.request(), and gdb.dap.server.Server.shutdown().
gdb.dap.server.capability | ( | name, | |
value = True ) |
gdb.dap.server.client_bool_capability | ( | name | ) |
gdb.dap.server.disconnect | ( | *bool | terminateDebuggee = False, |
** | args ) |
gdb.dap.server.request | ( | str | name, |
*bool | response = True, | ||
bool | on_dap_thread = False, | ||
bool | expect_stopped = True ) |
A decorator for DAP requests. This registers the function as the implementation of the DAP request NAME. By default, the function is invoked in the gdb thread, and its result is returned as the 'body' of the DAP response. Some keyword arguments are provided as well: If RESPONSE is False, the result of the function will not be waited for and no 'body' will be in the response. If ON_DAP_THREAD is True, the function will be invoked in the DAP thread. When ON_DAP_THREAD is True, RESPONSE may not be False. If EXPECT_STOPPED is True (the default), then the request will fail with the 'notStopped' reason if it is processed while the inferior is running. When EXPECT_STOPPED is False, the request will proceed regardless of the inferior's state.
Definition at line 182 of file server.py.
References gdb.dap.server._check_not_running(), and func.
gdb.dap.server.send_event | ( | event, | |
body = None ) |