Cleaned up the output of "image lookup --address <ADDR>" which involved
cleaning up the output of many GetDescription objects that are part of a
symbol context. This fixes an issue where no ranges were being printed out
for functions, blocks and symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113571 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Symbol/CompileUnit.cpp b/source/Symbol/CompileUnit.cpp
index eaf1211..3665f5b 100644
--- a/source/Symbol/CompileUnit.cpp
+++ b/source/Symbol/CompileUnit.cpp
@@ -68,8 +68,7 @@
void
CompileUnit::GetDescription(Stream *s, lldb::DescriptionLevel level) const
{
- *s << '"' << (const FileSpec&)*this << "\", id = " << (const UserID&)*this
- << ", language = " << (const Language&)*this;
+ *s << "id = " << (const UserID&)*this << ", file = \"" << (const FileSpec&)*this << "\", language = \"" << (const Language&)*this << '"';
}
@@ -85,8 +84,8 @@
s->Printf("%.*p: ", (int)sizeof(void*) * 2, this);
s->Indent();
*s << "CompileUnit" << (const UserID&)*this
- << ", language = " << (const Language&)*this
- << ", file='" << (const FileSpec&)*this << "'\n";
+ << ", language = \"" << (const Language&)*this
+ << "\", file = '" << (const FileSpec&)*this << "'\n";
// m_types.Dump(s);