sgraenitz created this revision. sgraenitz added reviewers: vsk, davide, aprantl.
When LLDB successfully parses a command (like "expression" in this case) and determines incomplete input, the user can continue typing on multiple lines (in this case "2+3"). This should provide the correct result. Note that LLDB reverts input from the additional lines, so they are not present in the output. https://reviews.llvm.org/D52270 Files: lit/Expr/TestMultilineExpr.test Index: lit/Expr/TestMultilineExpr.test =================================================================== --- /dev/null +++ lit/Expr/TestMultilineExpr.test @@ -0,0 +1,10 @@ +# RUN: %lldb -b -s %s | FileCheck %s + +# In terminal sessions LLDB reverts input from subsequent lines so it doesn't show up in the output we check below. +expression +2+ +3 + +# CHECK: (lldb) expression +# CHECK-NEXT: Enter expressions, then terminate with an empty line to evaluate: +# CHECK-NEXT: (int) {{.*}} = 5 \ No newline at end of file
Index: lit/Expr/TestMultilineExpr.test =================================================================== --- /dev/null +++ lit/Expr/TestMultilineExpr.test @@ -0,0 +1,10 @@ +# RUN: %lldb -b -s %s | FileCheck %s + +# In terminal sessions LLDB reverts input from subsequent lines so it doesn't show up in the output we check below. +expression +2+ +3 + +# CHECK: (lldb) expression +# CHECK-NEXT: Enter expressions, then terminate with an empty line to evaluate: +# CHECK-NEXT: (int) {{.*}} = 5 \ No newline at end of file
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits