<rdar://problem/11791234>
authorGreg Clayton <gclayton@apple.com>
Tue, 2 Oct 2012 06:04:17 +0000 (06:04 +0000)
committerGreg Clayton <gclayton@apple.com>
Tue, 2 Oct 2012 06:04:17 +0000 (06:04 +0000)
Shared libraries on MacOSX were not properly being removed from the shared
module list when re-running a debug session due to an error in:

Module::MatchesModuleSpec()

llvm-svn: 164991

lldb/source/Core/Module.cpp

index 7ef05d9..64a5ebd 100644 (file)
@@ -1171,7 +1171,7 @@ Module::MatchesModuleSpec (const ModuleSpec &module_ref)
     const FileSpec &platform_file_spec = module_ref.GetPlatformFileSpec();
     if (platform_file_spec)
     {
-        if (!FileSpec::Equal (platform_file_spec, m_platform_file, platform_file_spec.GetDirectory()))
+        if (!FileSpec::Equal (platform_file_spec, GetPlatformFileSpec (), platform_file_spec.GetDirectory()))
             return false;
     }