summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.h
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-10-20 00:55:21 +0000
committerSean Callanan <scallanan@apple.com>2015-10-20 00:55:21 +0000
commitf2bd5c3e225bde7576e421e09c03fb40c7268db5 (patch)
tree3cfdf75e92cea3f47f92e13387bea3f7f0e278e2 /lldb/source/Commands/CommandObjectExpression.h
parent61149b86c312fb7aa9122651e0fe0ebc3b6cedef (diff)
downloadbcm5719-llvm-f2bd5c3e225bde7576e421e09c03fb40c7268db5.tar.gz
bcm5719-llvm-f2bd5c3e225bde7576e421e09c03fb40c7268db5.zip
Added support to the expression command for dropping into the REPL at will.
"expr -r" does this. It also returns to a REPL if the LLDB command interpreter is neseted inside it, for example in cases where a REPL command resulted in a breakpoint being hit or a crash. llvm-svn: 250780
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.h')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.h b/lldb/source/Commands/CommandObjectExpression.h
index e30e9b0e01c..7103675f399 100644
--- a/lldb/source/Commands/CommandObjectExpression.h
+++ b/lldb/source/Commands/CommandObjectExpression.h
@@ -16,6 +16,7 @@
// Project includes
#include "lldb/Core/IOHandler.h"
#include "lldb/Interpreter/CommandObject.h"
+#include "lldb/Interpreter/OptionGroupBoolean.h"
#include "lldb/Interpreter/OptionGroupFormat.h"
#include "lldb/Interpreter/OptionGroupValueObjectDisplay.h"
#include "lldb/Target/ExecutionContext.h"
@@ -101,6 +102,7 @@ protected:
OptionGroupOptions m_option_group;
OptionGroupFormat m_format_options;
OptionGroupValueObjectDisplay m_varobj_options;
+ OptionGroupBoolean m_repl_option;
CommandOptions m_command_options;
uint32_t m_expr_line_count;
std::string m_expr_lines; // Multi-line expression support
OpenPOWER on IntegriCloud