Skip to content

Conversation

da-viper
Copy link
Contributor

pathFormat is an optional field in initializeAruguments.

@da-viper da-viper requested a review from ashgti August 25, 2025 12:19
@da-viper da-viper requested a review from JDevlieghere as a code owner August 25, 2025 12:19
@llvmbot llvmbot added the lldb label Aug 25, 2025
@llvmbot
Copy link
Member

llvmbot commented Aug 25, 2025

@llvm/pr-subscribers-lldb

Author: Ebuka Ezike (da-viper)

Changes

pathFormat is an optional field in initializeAruguments.


Full diff: https://github.com/llvm/llvm-project/pull/155238.diff

1 Files Affected:

  • (modified) lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp (+1-1)
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);
 }
 

Copy link
Member

@walter-erquinigo walter-erquinigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

pathFormat is an optional field in `initializeAruguments`.
@da-viper da-viper force-pushed the optional-path-format branch from 7fa46bd to d86c86a Compare August 26, 2025 13:39
@da-viper da-viper merged commit 749537f into llvm:main Aug 26, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants