[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


================
@@ -962,6 +962,44 @@ bool ReplModeRequestHandler::DoExecute(lldb::SBDebugger debugger,
   return true;
 }
 
+// Sends a custom DAP event with an optional body.
+//
+// See
+// https://code.visualstudio.com/api/references/vscode-api#debug.onDidReceiveDebugSessionCustomEvent
+bool CustomDAPEventRequestHandler::DoExecute(
+    lldb::SBDebugger debugger, char **command,
+    lldb::SBCommandReturnObject &result) {
+  // Command format like: `custom-event <name> <body>?`
----------------
vogelsgesang wrote:

afaict, we currently do not reject

```
custom-event foo {} bar baz
```

and simply ignore `bar` and `baz`? We should probably raise an error instead?

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


More information about the lldb-commits mailing list