diff options
author | Greg Clayton <gclayton@apple.com> | 2010-10-06 03:09:11 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-10-06 03:09:11 +0000 |
commit | 32c4085ba2d259ff9a4365b1962362248de2c655 (patch) | |
tree | 33daf492f6ff65a408bdbddea830dd789735b6d7 /lldb/source/Commands/CommandObjectExpression.cpp | |
parent | 0f7e94fd7b7d877359cfeeb9d9d9ca52f2577233 (diff) | |
download | bcm5719-llvm-32c4085ba2d259ff9a4365b1962362248de2c655.tar.gz bcm5719-llvm-32c4085ba2d259ff9a4365b1962362248de2c655.zip |
Restored the ability to set the format for expressions after changing the expression results over to ValueObjectSP objects.
llvm-svn: 115733
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectExpression.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp index 1f6c3de1903..516d941867d 100644 --- a/lldb/source/Commands/CommandObjectExpression.cpp +++ b/lldb/source/Commands/CommandObjectExpression.cpp @@ -237,6 +237,9 @@ CommandObjectExpression::EvaluateExpression assert (result_valobj_sp.get()); if (result_valobj_sp->GetError().Success()) { + if (m_options.format != eFormatDefault) + result_valobj_sp->SetFormat (m_options.format); + ValueObject::DumpValueObject (output_stream, m_exe_ctx.GetBestExecutionContextScope(), result_valobj_sp.get(), // Variable object to dump |