[Lldb-commits] [lldb] r161384 - /lldb/trunk/source/Core/ValueObject.cpp

Enrico Granata egranata at apple.com
Mon Aug 6 18:49:35 PDT 2012


Author: enrico
Date: Mon Aug  6 20:49:34 2012
New Revision: 161384

URL: http://llvm.org/viewvc/llvm-project?rev=161384&view=rev
Log:
Fixing an issue where ValueObject::GetPointeeData() would not work correctly for file addresses when fetching items other than the 0-th

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

Modified: lldb/trunk/source/Core/ValueObject.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObject.cpp?rev=161384&r1=161383&r2=161384&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObject.cpp (original)
+++ lldb/trunk/source/Core/ValueObject.cpp Mon Aug  6 20:49:34 2012
@@ -843,6 +843,7 @@
                     ModuleSP module_sp (GetModule());
                     if (module_sp)
                     {
+                        addr = addr + offset;
                         Address so_addr;
                         module_sp->ResolveFileAddress(addr, so_addr);
                         ExecutionContext exe_ctx (GetExecutionContextRef());





More information about the lldb-commits mailing list