[Lldb-commits] [PATCH] PECOFF

Virgile Bello virgile.bello at gmail.com
Fri Aug 23 10:10:56 PDT 2013


File offset is not set properly in PECOFF.

http://llvm-reviews.chandlerc.com/D1488

Files:
  source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp

Index: source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
===================================================================
--- source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
+++ source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
@@ -434,6 +434,8 @@
                     m_coff_header_opt.data_dirs[i].vmaddr = m_data.GetU32(offset_ptr);
                     m_coff_header_opt.data_dirs[i].vmsize = m_data.GetU32(offset_ptr);
                 }
+
+                m_file_offset = m_coff_header_opt.image_base;
             }
         }
     }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1488.1.patch
Type: text/x-patch
Size: 558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20130823/d0c808cb/attachment.bin>


More information about the lldb-commits mailing list