From d86c86adce60e49490ac8577cf34d17067da715a Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Mon, 25 Aug 2025 13:14:49 +0100 Subject: [PATCH] [lldb][lldb-dap] parse `pathFormat` as an optional pathFormat is an optional field in `initializeAruguments`. --- 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 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); }