summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2017-07-19 23:25:42 +0000
committerJim Ingham <jingham@apple.com>2017-07-19 23:25:42 +0000
commitd0309916005826a3896a7ab2b44467a16586c8cc (patch)
tree24df5f7ba063aa79d1dcc40aea9508a28e56c792 /lldb/source/Commands/CommandObjectExpression.cpp
parentb3283b740fd9ba508ff71208ea7ac2c3168da2ec (diff)
downloadbcm5719-llvm-d0309916005826a3896a7ab2b44467a16586c8cc.tar.gz
bcm5719-llvm-d0309916005826a3896a7ab2b44467a16586c8cc.zip
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> llvm-svn: 308549
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index b6e0016c88e..01ca3111155 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -228,6 +228,16 @@ CommandObjectExpression::CommandObjectExpression(
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\" or if you are still interested in the e
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:
OpenPOWER on IntegriCloud