From d804d285567f7833b2fb3d14eceac8dbeaae8f87 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 15 Mar 2012 21:01:31 +0000 Subject: Use the metadata in the dSYM bundle Info.plist to remap source paths when they keys are available. llvm-svn: 152836 --- lldb/source/Core/Module.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lldb/source/Core/Module.cpp') diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index f2c32c57ec99..8372b53afe39 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -127,6 +127,7 @@ Module::Module (const ModuleSpec &module_spec) : m_objfile_sp (), m_symfile_ap (), m_ast (), + m_source_mappings (), m_did_load_objfile (false), m_did_load_symbol_vendor (false), m_did_parse_uuid (false), @@ -168,6 +169,7 @@ Module::Module(const FileSpec& file_spec, m_objfile_sp (), m_symfile_ap (), m_ast (), + m_source_mappings (), m_did_load_objfile (false), m_did_load_symbol_vendor (false), m_did_parse_uuid (false), @@ -1156,3 +1158,10 @@ Module::MatchesModuleSpec (const ModuleSpec &module_ref) return true; } +bool +Module::FindSourceFile (const FileSpec &orig_spec, FileSpec &new_spec) const +{ + Mutex::Locker locker (m_mutex); + return m_source_mappings.FindFile (orig_spec, new_spec); +} + -- cgit v1.2.3