When doing a "target modules lookup --address <addr>", show the file address
in the module when dumping the information in addition to all info that we
were previously showing.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@147815 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectTarget.cpp b/source/Commands/CommandObjectTarget.cpp
index 44bab7b..4835fbb 100644
--- a/source/Commands/CommandObjectTarget.cpp
+++ b/source/Commands/CommandObjectTarget.cpp
@@ -1337,15 +1337,13 @@
                 return false;
         }
         
-        // If an offset was given, print out the address we ended up looking up
-        if (offset)
-            strm.Printf("File Address: 0x%llx\n", addr);
-        
         ExecutionContextScope *exe_scope = interpreter.GetExecutionContext().GetBestExecutionContextScope();
         strm.IndentMore();
         strm.Indent ("    Address: ");
+        so_addr.Dump (&strm, exe_scope, Address::DumpStyleModuleWithFileAddress);
+        strm.PutCString (" (");
         so_addr.Dump (&strm, exe_scope, Address::DumpStyleSectionNameOffset);
-        strm.EOL();
+        strm.PutCString (")\n");
         strm.Indent ("    Summary: ");
         const uint32_t save_indent = strm.GetIndentLevel ();
         strm.SetIndentLevel (save_indent + 13);