[Lldb-commits] [lldb] [lldb][lldb-dap] parse `pathFormat` as an optional (PR #155238)

via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 25 05:20:18 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Ebuka Ezike (da-viper)

<details>
<summary>Changes</summary>

pathFormat is an optional field in `initializeAruguments`.

---
Full diff: https://github.com/llvm/llvm-project/pull/155238.diff


1 Files Affected:

- (modified) lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp (+1-1) 


``````````diff
diff --git a/lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp b/lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp
index eab7211e18973..e1806d6230a80 100644
--- a/lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp
+++ b/lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp
@@ -219,7 +219,7 @@ bool fromJSON(const json::Value &Params, InitializeRequestArguments &IRA,
          OM.map("clientName", IRA.clientName) && OM.map("locale", IRA.locale) &&
          OM.map("linesStartAt1", IRA.linesStartAt1) &&
          OM.map("columnsStartAt1", IRA.columnsStartAt1) &&
-         OM.map("pathFormat", IRA.pathFormat) &&
+         OM.mapOptional("pathFormat", IRA.pathFormat) &&
          OM.map("$__lldb_sourceInitFile", IRA.lldbExtSourceInitFile);
 }
 

``````````

</details>


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


More information about the lldb-commits mailing list