[Lldb-commits] [lldb] r169560 - /lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
Greg Clayton
gclayton at apple.com
Thu Dec 6 15:12:53 PST 2012
Author: gclayton
Date: Thu Dec 6 17:12:53 2012
New Revision: 169560
URL: http://llvm.org/viewvc/llvm-project?rev=169560&view=rev
Log:
<rdar://problem/12827789>
Be sure to load dSYM files when the object file is in memory only.
Modified:
lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
Modified: lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp?rev=169560&r1=169559&r2=169560&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp Thu Dec 6 17:12:53 2012
@@ -183,17 +183,15 @@
{
// No symbol file was specified in the module, lets try and find
// one ourselves.
- const FileSpec &file_spec = obj_file->GetFileSpec();
- if (file_spec)
- {
- ModuleSpec module_spec(file_spec, module_sp->GetArchitecture());
- module_spec.GetUUID() = module_sp->GetUUID();
- dsym_fspec = Symbols::LocateExecutableSymbolFile (module_spec);
- if (module_spec.GetSourceMappingList().GetSize())
- {
- module_sp->GetSourceMappingList().Append (module_spec.GetSourceMappingList (), true);
- }
- }
+ FileSpec file_spec = obj_file->GetFileSpec();
+ if (!file_spec)
+ file_spec = module_sp->GetFileSpec();
+
+ ModuleSpec module_spec(file_spec, module_sp->GetArchitecture());
+ module_spec.GetUUID() = module_sp->GetUUID();
+ dsym_fspec = Symbols::LocateExecutableSymbolFile (module_spec);
+ if (module_spec.GetSourceMappingList().GetSize())
+ module_sp->GetSourceMappingList().Append (module_spec.GetSourceMappingList (), true);
}
if (dsym_fspec)
More information about the lldb-commits
mailing list