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/SymbolContext.cpp b/source/Symbol/SymbolContext.cpp
index 51178fc..d70976c 100644
--- a/source/Symbol/SymbolContext.cpp
+++ b/source/Symbol/SymbolContext.cpp
@@ -198,9 +198,11 @@
{
if (module_sp)
{
- s->Indent(" Module: \"");
+ s->Indent(" Module: file = \"");
module_sp->GetFileSpec().Dump(s);
- s->PutChar('"');
+ *s << '"';
+ if (module_sp->GetArchitecture().IsValid())
+ s->Printf (", arch = \"%s\"", module_sp->GetArchitecture().AsCString());
s->EOL();
}