From: Greg Clayton Date: Thu, 29 May 2014 17:52:46 +0000 (+0000) Subject: Fixed the Module::Module(ModuleSpec) constructor to properly copy the file offset... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36d7c89497584fb510308fb62b245c389880bfed;p=platform%2Fupstream%2Fllvm.git Fixed the Module::Module(ModuleSpec) constructor to properly copy the file offset and object file mod time from the actual module specifications so we will always be able to directly load the image we care about when calling Module::GetObjectFile(). llvm-svn: 209833 --- diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 4cf10e9d..cda6f27 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -197,8 +197,8 @@ Module::Module (const ModuleSpec &module_spec) : m_platform_file = module_spec.GetPlatformFileSpec(); m_symfile_spec = module_spec.GetSymbolFileSpec(); m_object_name = module_spec.GetObjectName(); - m_object_offset = module_spec.GetObjectOffset(); - m_object_mod_time = module_spec.GetObjectModificationTime(); + m_object_offset = matching_module_spec.GetObjectOffset(); + m_object_mod_time = matching_module_spec.GetObjectModificationTime(); }