]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
DAP: Allow for deferring stop events from gdb thread
authorJohan Sternerup <johan.sternerup@gmail.com>
Sat, 1 Jun 2024 16:16:30 +0000 (18:16 +0200)
committerTom Tromey <tromey@adacore.com>
Thu, 6 Jun 2024 16:25:19 +0000 (10:25 -0600)
commit584dc32c594fa60eba0a3149001e8a844b09f5b9
tree54496f1ae6e2fc2de6a5c5bccdcfb98463741837
parent01469ac03e0673d40f8372d5e89139f86327e658
DAP: Allow for deferring stop events from gdb thread

The existing `send_event_later()` method allows commands processed on
the DAP thread to queue an event for execution until after the response
has been sent to the client.

We now introduce a corresponding method for use by the gdb thread. This
method `send_event_maybe_later()` will queue the event just like
`send_event_later()`, but only if it has been configured to do so by a
new @request option `defer_stop_events`. As the name implies the
functionality is currently only used for handling stop events.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/python/lib/gdb/dap/events.py
gdb/python/lib/gdb/dap/server.py