[Lldb-commits] [lldb] r147815 - /lldb/trunk/source/Commands/CommandObjectTarget.cpp

Greg Clayton gclayton at apple.com
Mon Jan 9 16:25:18 PST 2012


Author: gclayton
Date: Mon Jan  9 18:25:18 2012
New Revision: 147815

URL: http://llvm.org/viewvc/llvm-project?rev=147815&view=rev
Log:
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.


Modified:
    lldb/trunk/source/Commands/CommandObjectTarget.cpp

Modified: lldb/trunk/source/Commands/CommandObjectTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectTarget.cpp?rev=147815&r1=147814&r2=147815&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectTarget.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectTarget.cpp Mon Jan  9 18:25:18 2012
@@ -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);





More information about the lldb-commits mailing list