summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-07-29 19:36:30 +0000
committerGreg Clayton <gclayton@apple.com>2010-07-29 19:36:30 +0000
commit4b4b5fcebc3678145fb155227043624673cc78fd (patch)
tree6de6930af2ce9c9747a8c5e678351db1fe31c738 /lldb/source/Commands/CommandObjectExpression.cpp
parent4ed7c5b2f8b28145392e3bb01121169fe9eb7b0b (diff)
downloadbcm5719-llvm-4b4b5fcebc3678145fb155227043624673cc78fd.tar.gz
bcm5719-llvm-4b4b5fcebc3678145fb155227043624673cc78fd.zip
Fixed expression result printing to have the expression result type be in
parens and to have a space before the value. Before: (lldb) expr 3 + 1 int4 (lldb) expr 3 + 1 (int) 4 llvm-svn: 109793
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index cd5c8f34efb..d0c82956e6d 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -464,7 +464,7 @@ CommandObjectExpression::EvaluateExpression (const char *expr, bool bare, Stream
if (clang_type)
{
if (m_options.show_types)
- output_stream.PutCString(ClangASTType::GetClangTypeName (clang_type).GetCString());
+ output_stream.Printf("(%s) ", ClangASTType::GetClangTypeName (clang_type).GetCString());
ClangASTType::DumpValue (ast_context, // The ASTContext that the clang type belongs to
clang_type, // The opaque clang type we want to dump that value of
OpenPOWER on IntegriCloud