diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2025-04-27 10:21:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-27 10:21:19 -0700 |
commit | b546baff48767d54da03049d4f30690649a5e599 (patch) | |
tree | d00d4c1b3bc6f1f48a3edccecf819f4664bbe289 /lldb/packages/Python/lldbsuite | |
parent | a1bcc8f757ff70e3504c7cca1219a474c55325d1 (diff) | |
download | llvm-b546baff48767d54da03049d4f30690649a5e599.zip llvm-b546baff48767d54da03049d4f30690649a5e599.tar.gz llvm-b546baff48767d54da03049d4f30690649a5e599.tar.bz2 |
[lldb-dap] Support the Module Event (#137380)
The module event indicates that some information about a module has
changed. The event is supported by the Emacs and Visual Studio DAP
clients. This PR adds support for emitting the event from lldb-dap.
Fixes #137058
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py index 40bdcf9..99fcc42 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py @@ -135,6 +135,7 @@ class DebugCommunication(object): self.breakpoint_events = [] self.progress_events = [] self.reverse_requests = [] + self.module_events = [] self.sequence = 1 self.threads = None self.recv_thread.start() @@ -255,6 +256,11 @@ class DebugCommunication(object): # and 'progressEnd' events. Keep these around in case test # cases want to verify them. self.progress_events.append(packet) + elif event == "module": + # Module events indicate that some information about a module has changed. + self.module_events.append(packet) + # no need to add 'module' event packets to our packets list + return keepGoing elif packet_type == "response": if packet["command"] == "disconnect": |