https://github.com/DrSergei created 
https://github.com/llvm/llvm-project/pull/184782

Fixed small typo. We always send invalidated event, so it is not a real problem.

>From f55ad2ca279d4a8d0646fe792ea6fb83b9f3b97f Mon Sep 17 00:00:00 2001
From: Sergei Druzhkov <[email protected]>
Date: Thu, 5 Mar 2026 15:15:09 +0300
Subject: [PATCH] [lldb-dap] Fix valueLocationReference in setVariable request

---
 lldb/tools/lldb-dap/Handler/SetVariableRequestHandler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/tools/lldb-dap/Handler/SetVariableRequestHandler.cpp 
b/lldb/tools/lldb-dap/Handler/SetVariableRequestHandler.cpp
index 725d5de094c95..736d41b6555dc 100644
--- a/lldb/tools/lldb-dap/Handler/SetVariableRequestHandler.cpp
+++ b/lldb/tools/lldb-dap/Handler/SetVariableRequestHandler.cpp
@@ -81,7 +81,7 @@ SetVariableRequestHandler::Run(const SetVariableArguments 
&args) const {
     body.memoryReference = addr;
 
   if (ValuePointsToCode(variable))
-    body.valueLocationReference = new_var_ref.AsUInt32();
+    body.valueLocationReference = PackLocation(new_var_ref.AsUInt32(), true);
 
   // Also send invalidated event to signal client that some variables
   // (e.g. references) can be changed.

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to