aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEbuka Ezike <yerimyah1@gmail.com>2025-08-26 15:26:01 +0100
committerGitHub <noreply@github.com>2025-08-26 15:26:01 +0100
commit749537f4878165f5548b499669ec11a61da1903c (patch)
tree9bc068891bfe17b24a3c04f7d76aa87ab2fe648b
parent737cb78319341478cc5b946f9e1efda54643bfa6 (diff)
downloadllvm-749537f4878165f5548b499669ec11a61da1903c.zip
llvm-749537f4878165f5548b499669ec11a61da1903c.tar.gz
llvm-749537f4878165f5548b499669ec11a61da1903c.tar.bz2
[lldb][lldb-dap] parse `pathFormat` as an optional (#155238)
pathFormat is an optional field in `initializeAruguments`.
-rw-r--r--lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp b/lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp
index eab7211..e1806d6 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);
}