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/LineEntry.cpp b/source/Symbol/LineEntry.cpp
index 5d9b27e..8880592 100644
--- a/source/Symbol/LineEntry.cpp
+++ b/source/Symbol/LineEntry.cpp
@@ -151,20 +151,16 @@
if (level == lldb::eDescriptionLevelBrief || level == lldb::eDescriptionLevelFull)
{
- // Show address only
if (show_address_only)
{
- s->PutCString ("address = ");
range.GetBaseAddress().Dump(s, process, Address::DumpStyleLoadAddress, Address::DumpStyleFileAddress);
}
else
{
- s->PutCString ("range = ");
range.Dump(s, process, Address::DumpStyleLoadAddress, Address::DumpStyleFileAddress);
}
- if (file)
- *s << ' ' << file;
+ *s << ": " << file;
if (line)
{
@@ -173,6 +169,7 @@
s->Printf(":%u", column);
}
+
if (level == lldb::eDescriptionLevelFull)
{
if (is_start_of_statement)