[Lldb-commits] [lldb] r175131 - <rdar://problem/13198767>

Greg Clayton gclayton at apple.com
Wed Feb 13 19:26:35 PST 2013


Author: gclayton
Date: Wed Feb 13 21:26:35 2013
New Revision: 175131

URL: http://llvm.org/viewvc/llvm-project?rev=175131&view=rev
Log:
<rdar://problem/13198767>

When dumping instructions, resolve the address specified as a file address if the target doesn't have anything loaded.


Modified:
    lldb/trunk/source/Core/DataExtractor.cpp

Modified: lldb/trunk/source/Core/DataExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/DataExtractor.cpp?rev=175131&r1=175130&r2=175131&view=diff
==============================================================================
--- lldb/trunk/source/Core/DataExtractor.cpp (original)
+++ lldb/trunk/source/Core/DataExtractor.cpp Wed Feb 13 21:26:35 2013
@@ -1339,7 +1339,8 @@ DataExtractor::Dump (Stream *s,
                 lldb_private::Address so_addr;
                 if (!target_sp->GetSectionLoadList().ResolveLoadAddress(addr, so_addr))
                 {
-                    so_addr.SetRawAddress(addr);
+                    if (target_sp->GetSectionLoadList().IsEmpty() || !target_sp->GetImages().ResolveFileAddress(addr, so_addr))
+                        so_addr.SetRawAddress(addr);
                 }
 
                 size_t bytes_consumed = disassembler_sp->DecodeInstructions (so_addr, *this, start_offset, item_count, false);





More information about the lldb-commits mailing list