[Lldb-commits] [lldb] [lldb-dap] Creating an API for sending custom dap events from lldb-dap. (PR #112384)

Adrian Vogelsgesang via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 15 15:31:54 PDT 2024


================
@@ -290,6 +290,30 @@ The initial repl-mode can be configured with the cli flag `--repl-mode=<mode>`
 and may also be adjusted at runtime using the lldb command
 `lldb-dap repl-mode <mode>`.
 
+#### `lldb-dap custom-event`
----------------
vogelsgesang wrote:

afaict, this command could also be used to send non-custom commands, such as the `invalidated` command.

E.g., it might be useful to send an "[stackframe invalidated](https://microsoft.github.io/debug-adapter-protocol/specification#Events_Invalidated)" event after using the `jump` command to reset the instruction pointer manually from a script. (also see #109335)

Maybe we should rename this to `lldb-dap send-event`, and update the documentation to mention this can be used both for custom and builtin events?

https://github.com/llvm/llvm-project/pull/112384


More information about the lldb-commits mailing list