diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2015-02-06 21:38:51 +0000 | 
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2015-02-06 21:38:51 +0000 | 
| commit | 205afe679855a4ce8149cdaa94d3f0868ce796dc (patch) | |
| tree | 09bc83f73246ee3c7a779605cd0122093d2a8a19 /source/Commands/CommandObjectExpression.cpp | |
| parent | 0cac4ca3916ac24ab6139d03cbfd18db9e715bfe (diff) | |
Notes
Diffstat (limited to 'source/Commands/CommandObjectExpression.cpp')
| -rw-r--r-- | source/Commands/CommandObjectExpression.cpp | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/source/Commands/CommandObjectExpression.cpp b/source/Commands/CommandObjectExpression.cpp index 079c62ddfdff..b4c559c81cc5 100644 --- a/source/Commands/CommandObjectExpression.cpp +++ b/source/Commands/CommandObjectExpression.cpp @@ -281,7 +281,7 @@ CommandObjectExpression::EvaluateExpression      Target *target = exe_ctx.GetTargetPtr();      if (!target) -        target = Host::GetDummyTarget(m_interpreter.GetDebugger()).get(); +        target = GetDummyTarget();      if (target)      { @@ -425,11 +425,15 @@ CommandObjectExpression::GetMultilineExpression ()      m_expr_line_count = 0;      Debugger &debugger = GetCommandInterpreter().GetDebugger(); +    bool color_prompt = debugger.GetUseColor();      const bool multiple_lines = true; // Get multiple lines      IOHandlerSP io_handler_sp (new IOHandlerEditline (debugger, +                                                      IOHandler::Type::Expression,                                                        "lldb-expr",      // Name of input reader for history                                                        NULL,             // No prompt +                                                      NULL,             // Continuation prompt                                                        multiple_lines, +                                                      color_prompt,                                                        1,                // Show line numbers starting at 1                                                        *this)); | 
