[Lldb-commits] [lldb] r161013 - /lldb/trunk/source/Target/SectionLoadList.cpp
Greg Clayton
gclayton at apple.com
Mon Jul 30 17:31:33 PDT 2012
Author: gclayton
Date: Mon Jul 30 19:31:32 2012
New Revision: 161013
URL: http://llvm.org/viewvc/llvm-project?rev=161013&view=rev
Log:
<rdar://problem/11620586>
Fixed an issue where warning logs were causing a crash.
Modified:
lldb/trunk/source/Target/SectionLoadList.cpp
Modified: lldb/trunk/source/Target/SectionLoadList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/SectionLoadList.cpp?rev=161013&r1=161012&r2=161013&view=diff
==============================================================================
--- lldb/trunk/source/Target/SectionLoadList.cpp (original)
+++ lldb/trunk/source/Target/SectionLoadList.cpp Mon Jul 30 19:31:32 2012
@@ -109,12 +109,16 @@
ModuleSP module_sp (section->GetModule());
if (module_sp)
{
- module_sp->ReportWarning ("address 0x%16.16llx maps to more than one section: %s.%s and %s.%s",
- load_addr,
- module_sp->GetFileSpec().GetFilename().GetCString(),
- section->GetName().GetCString(),
- ats_pos->second->GetModule()->GetFileSpec().GetFilename().GetCString(),
- ats_pos->second->GetName().GetCString());
+ ModuleSP curr_module_sp (ats_pos->second->GetModule());
+ if (curr_module_sp)
+ {
+ module_sp->ReportWarning ("address 0x%16.16llx maps to more than one section: %s.%s and %s.%s",
+ load_addr,
+ module_sp->GetFileSpec().GetFilename().GetCString(),
+ section->GetName().GetCString(),
+ curr_module_sp->GetFileSpec().GetFilename().GetCString(),
+ ats_pos->second->GetName().GetCString());
+ }
}
}
ats_pos->second = section;
More information about the lldb-commits
mailing list