summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ModuleList.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-06-28 23:51:11 +0000
committerGreg Clayton <gclayton@apple.com>2010-06-28 23:51:11 +0000
commit8d38ac453673a0cbad6d2a6b5332cbf2c2847d1a (patch)
tree946670ae4bac7d57b5a7480c9c7a6e3a2eb6b4dc /lldb/source/Core/ModuleList.cpp
parent3dd716c3c31f8cd2172fa53ca5a85b94db2dea65 (diff)
downloadbcm5719-llvm-8d38ac453673a0cbad6d2a6b5332cbf2c2847d1a.tar.gz
bcm5719-llvm-8d38ac453673a0cbad6d2a6b5332cbf2c2847d1a.zip
Fixed debug map in executable + DWARF in .o debugging on Mac OS X.
Added the ability to dump any file in the global module cache using any of the "image dump" commands. This allows us to dump the .o files that are used with DWARF + .o since they don't belong the the target list for the current target. llvm-svn: 107100
Diffstat (limited to 'lldb/source/Core/ModuleList.cpp')
-rw-r--r--lldb/source/Core/ModuleList.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp
index c928508b340..ae9bb880a20 100644
--- a/lldb/source/Core/ModuleList.cpp
+++ b/lldb/source/Core/ModuleList.cpp
@@ -437,6 +437,20 @@ ModuleList::GetModuleSP (lldb_private::Module *module_ptr)
return module_sp;
}
+size_t
+ModuleList::FindSharedModules
+(
+ const FileSpec& in_file_spec,
+ const ArchSpec& arch,
+ const UUID *uuid_ptr,
+ const ConstString *object_name_ptr,
+ ModuleList &matching_module_list
+)
+{
+ ModuleList &shared_module_list = GetSharedModuleList ();
+ Mutex::Locker locker(shared_module_list.m_modules_mutex);
+ return shared_module_list.FindModules (&in_file_spec, &arch, uuid_ptr, object_name_ptr, matching_module_list);
+}
Error
ModuleList::GetSharedModule
OpenPOWER on IntegriCloud