<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Is there a reason for the line down below with the "<<<<<<<<< Why?" comment?<br>
<br>
Target::GetSharedModule() appends the module to the images list, and this line is adding it again (causing duplicates).<br>
<br>
I'm guessing it's just a bug, but I wanted to make sure before I killed it...<br>
-Mike<br>
<br>
ModuleSP<br>
DynamicLoaderPOSIXDYLD::LoadModuleAtAddress(const FileSpec &file, addr_t base_addr)<br>
{<br>
Target &target = m_process->GetTarget();<br>
ModuleList &modules = target.GetImages();<br>
ModuleSP module_sp;<br>
<br>
ModuleSpec module_spec (file, target.GetArchitecture());<br>
if ((module_sp = modules.FindFirstModule (module_spec))) <br>
{<br>
UpdateLoadedSections(module_sp, base_addr);<br>
}<br>
else if ((module_sp = target.GetSharedModule(module_spec))) <br>
{<br>
UpdateLoadedSections(module_sp, base_addr);<br>
modules.Append(module_sp); // <<<<<<<<< Why?<br>
}<br>
<br>
return module_sp;<br>
}<br>
<br>
</div>
</body>
</html>