https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/171587
Backport 749537f4878165f5548b499669ec11a61da1903c Requested by: @da-viper >From f1e48bf8ba4ee282d89f5fd41669364fe6beb4d4 Mon Sep 17 00:00:00 2001 From: Ebuka Ezike <[email protected]> Date: Tue, 26 Aug 2025 15:26:01 +0100 Subject: [PATCH] [lldb][lldb-dap] parse `pathFormat` as an optional (#155238) pathFormat is an optional field in `initializeAruguments`. (cherry picked from commit 749537f4878165f5548b499669ec11a61da1903c) --- lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
