[Lldb-commits] [lldb] r308549 - Add help text for "expression" telling how to enter multi-line mode.
Jim Ingham via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 19 16:25:43 PDT 2017
Author: jingham
Date: Wed Jul 19 16:25:42 2017
New Revision: 308549
URL: http://llvm.org/viewvc/llvm-project?rev=308549&view=rev
Log:
Add help text for "expression" telling how to enter multi-line mode.
This seemed natural to us, but wasn't documented anywhere and was
not clear to everybody.
<rdar://problem/33316164>
Modified:
lldb/trunk/source/Commands/CommandObjectExpression.cpp
Modified: lldb/trunk/source/Commands/CommandObjectExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectExpression.cpp?rev=308549&r1=308548&r2=308549&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectExpression.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectExpression.cpp Wed Jul 19 16:25:42 2017
@@ -228,6 +228,16 @@ CommandObjectExpression::CommandObjectEx
m_command_options(), m_expr_line_count(0), m_expr_lines() {
SetHelpLong(
R"(
+Single and multi-line expressions:
+
+)"
+ " The expression provided on the command line must be a complete expression \
+with no newlines. To evaluate a multi-line expression, \
+hit a return after an empty expression, and lldb will enter the multi-line expression editor. \
+Hit return on an empty line to end the multi-line expression."
+
+ R"(
+
Timeouts:
)"
@@ -256,6 +266,7 @@ from the stack with \"thread return -x\"
you can issue the \"continue\" command and the expression evaluation will complete and the \
expression result will be available using the \"thread.completed-expression\" key in the thread \
format."
+
R"(
Examples:
More information about the lldb-commits
mailing list