summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-02-27 19:00:34 +0000
committerGreg Clayton <gclayton@apple.com>2012-02-27 19:00:34 +0000
commitd10a038cf3659de12243355a203741a3c2163e66 (patch)
tree0231e0ad33d59cd2b57e80447b91f47b550641ac /lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
parent581a691b52b66009ee151e45c38501ea3181da60 (diff)
downloadbcm5719-llvm-d10a038cf3659de12243355a203741a3c2163e66.tar.gz
bcm5719-llvm-d10a038cf3659de12243355a203741a3c2163e66.zip
Added the POSIX-DYLD as a plug-in in the darwin build in the Xcode project
so that we don't break it with code changes. After doing this I was able to fix the POSIX-DYLD plug-in so that it builds after recent ModuleSpec changes. llvm-svn: 151536
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp')
-rw-r--r--lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
index a9987c0096d..f4de4e52b38 100644
--- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
+++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
@@ -280,8 +280,9 @@ DynamicLoaderPOSIXDYLD::RefreshModules()
for (I = m_rendezvous.unloaded_begin(); I != E; ++I)
{
FileSpec file(I->path.c_str(), true);
+ ModuleSpec module_spec (file);
ModuleSP module_sp =
- loaded_modules.FindFirstModuleForFileSpec(file, NULL, NULL);
+ loaded_modules.FindFirstModule (module_spec);
if (module_sp.get())
old_modules.Append(module_sp);
}
@@ -371,11 +372,12 @@ DynamicLoaderPOSIXDYLD::LoadModuleAtAddress(const FileSpec &file, addr_t base_ad
ModuleList &modules = target.GetImages();
ModuleSP module_sp;
- if ((module_sp = modules.FindFirstModuleForFileSpec(file, NULL, NULL)))
+ ModuleSpec module_spec (file, target.GetArchitecture());
+ if ((module_sp = modules.FindFirstModule (module_spec)))
{
UpdateLoadedSections(module_sp, base_addr);
}
- else if ((module_sp = target.GetSharedModule(file, target.GetArchitecture())))
+ else if ((module_sp = target.GetSharedModule(module_spec)))
{
UpdateLoadedSections(module_sp, base_addr);
modules.Append(module_sp);
OpenPOWER on IntegriCloud