[llvm-branch-commits] [lldb] release/21.x: [lldb][lldb-dap] parse `pathFormat` as an optional (#155238) (PR #171587)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Dec 10 02:06:53 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: None (llvmbot)

<details>
<summary>Changes</summary>

Backport 749537f4878165f5548b499669ec11a61da1903c

Requested by: @<!-- -->da-viper

---
Full diff: https://github.com/llvm/llvm-project/pull/171587.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 29855ca50e9e0..ea4ab1a29c49d 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/171587


More information about the llvm-branch-commits mailing list