[Lldb-commits] [lldb] [lldb][lldb-dap] parse `pathFormat` as an optional (PR #155238)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 25 05:19:38 PDT 2025
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/155238
pathFormat is an optional field in `initializeAruguments`.
>From 7fa46bd73962a4cf36cc0a12ebe6588afca21db6 Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
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);
}
More information about the lldb-commits
mailing list