Author: gclayton
Date: Tue Aug 13 11:46:35 2013
New Revision: 188289
URL: http://llvm.org/viewvc/llvm-project?rev=188289&view=rev
Log:
When adding a dSYM file, don't remove all sections for the Module's object file
if the symbol vendor used the same object file.
Modified:
lldb/trunk/source/Core/Module.cpp
Modified: lldb/trunk/source/Core/Module.cpp
URL:
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Module.cpp?rev=188289&r1=188288&r2=188289&view=diff
==============================================================================
--- lldb/trunk/source/Core/Module.cpp (original)
+++ lldb/trunk/source/Core/Module.cpp Tue Aug 13 11:46:35 2013
@@ -1262,7 +1262,9 @@ Module::SetSymbolFileFileSpec (const Fil
if (section_list && symbol_file)
{
ObjectFile *obj_file = symbol_file->GetObjectFile();
- if (obj_file)
+ // Make sure we have an object file and that the symbol vendor's
objfile isn't
+ // the same as the module's objfile before we remove any sections
for it...
+ if (obj_file && obj_file != m_objfile_sp.get())
{
size_t num_sections = section_list->GetNumSections (0);
for (size_t idx = num_sections; idx > 0; --idx)
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits