[Lldb-commits] [lldb] Add lldb version into initialize response lldb-dap (PR #98703)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 15 09:28:58 PDT 2024


================
@@ -1710,6 +1710,8 @@ void request_initialize(const llvm::json::Object &request) {
   body.try_emplace("supportsLogPoints", true);
   // The debug adapter supports data watchpoints.
   body.try_emplace("supportsDataBreakpoints", true);
+  // Putting version string. Note: this is not part of DAP spec.
+  body.try_emplace("version", g_dap.debugger.GetVersionString());
----------------
walter-erquinigo wrote:

please call this `__lldb_version`. We tend to add the `__lldb` prefix to anything that is non-standard.

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


More information about the lldb-commits mailing list