Make the output from "target modules lookup -n"
prettier.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@150285 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectTarget.cpp b/source/Commands/CommandObjectTarget.cpp
index 423935e..a03672e 100644
--- a/source/Commands/CommandObjectTarget.cpp
+++ b/source/Commands/CommandObjectTarget.cpp
@@ -1485,12 +1485,21 @@
strm.PutCString(" in ");
}
}
+
+ AddressRange range;
+
+ sc.GetAddressRange(eSymbolContextEverything,
+ 0,
+ true,
+ range);
+
sc.DumpStopContext(&strm,
exe_scope,
- sc.line_entry.range.GetBaseAddress(),
+ range.GetBaseAddress(),
true,
true,
false);
+
strm.EOL();
if (verbose)
{