[Lldb-commits] [lldb] r109793 - /lldb/trunk/source/Commands/CommandObjectExpression.cpp
Greg Clayton
gclayton at apple.com
Thu Jul 29 12:36:30 PDT 2010
Author: gclayton
Date: Thu Jul 29 14:36:30 2010
New Revision: 109793
URL: http://llvm.org/viewvc/llvm-project?rev=109793&view=rev
Log:
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
Modified:
lldb/trunk/source/Commands/CommandObjectExpression.cpp
Modified: lldb/trunk/source/Commands/CommandObjectExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectExpression.cpp?rev=109793&r1=109792&r2=109793&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectExpression.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectExpression.cpp Thu Jul 29 14:36:30 2010
@@ -464,7 +464,7 @@
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
More information about the lldb-commits
mailing list