Skip to content

Commit 5abad32

Browse files
Revert "[lldb] Fix error : unknown error while starting lldb's C/C++ repl (llvm#153560)"
This reverts commit 00ffd8b. The change breaks lldb greendragon tests Namely, TestClangREPL.py
1 parent 10d193b commit 5abad32

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

lldb/source/Commands/CommandObjectExpression.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -640,15 +640,9 @@ void CommandObjectExpression::DoExecute(llvm::StringRef command,
640640
repl_sp->SetValueObjectDisplayOptions(m_varobj_options);
641641
}
642642

643-
if (!expr.empty()) {
644-
result.GetOutputStream().Printf(
645-
"Warning: trailing input is ignored in --repl mode\n");
646-
}
647-
648643
IOHandlerSP io_handler_sp(repl_sp->GetIOHandler());
649644
io_handler_sp->SetIsDone(false);
650645
debugger.RunIOHandlerAsync(io_handler_sp);
651-
return;
652646
} else {
653647
repl_error = Status::FromErrorStringWithFormat(
654648
"Couldn't create a REPL for %s",

lldb/test/API/repl/clang/TestClangREPL.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ def test_basic_completion(self):
5656

5757
self.quit()
5858

59-
# Re-enter the REPL with trailing input to trigger warning.
60-
self.child.send("expression --repl -l c -- 3 + 3\n")
61-
self.child.expect_exact("Warning: trailing input is ignored in --repl mode\n")
62-
self.child.expect_exact("1>")
63-
64-
# Evaluate another expression after warning.
65-
self.expect_repl("4 + 4", substrs=["(int) $3 = 8"])
66-
67-
self.quit()
68-
6959
# PExpect uses many timeouts internally and doesn't play well
7060
# under ASAN on a loaded machine..
7161
@skipIfAsan

0 commit comments

Comments
 (0)