Skip to content

Commit df06997

Browse files
committed
Remove the change to when we allow evaluation. Splitting into its own PR.
1 parent 3da6fd0 commit df06997

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

lldb/test/API/tools/lldb-dap/variables/TestDAP_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ def test_indexedVariables_with_raw_child_for_synthetics(self):
738738
self.do_test_indexedVariables(enableSyntheticChildDebugging=True)
739739

740740
@skipIfWindows
741-
@skipIfAsan # FIXME this fails with a non-asan issue on green dragon.
741+
@skipIfAsan # FIXME this fails with a non-asan issue on green dragon.
742742
def test_registers(self):
743743
"""
744744
Test that registers whose byte size is the size of a pointer on

lldb/tools/lldb-dap/Handler/EvaluateRequestHandler.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,7 @@ void EvaluateRequestHandler::operator()(
205205
if (value.GetError().Success() && context == "repl")
206206
value = value.Persist();
207207

208-
// Only the repl should evaluate expressions, which can mutate application
209-
// state. Other contexts are used for observing debuggee state only, not
210-
// mutating state.
211-
if (value.GetError().Fail() && context == "repl")
208+
if (value.GetError().Fail() && context != "hover")
212209
value = frame.EvaluateExpression(expression.data());
213210

214211
if (value.GetError().Fail()) {

0 commit comments

Comments
 (0)