Fixed an assertion that happened when debugging DWARF in .o files with debug

map on macosx.

llvm-svn: 113737
This commit is contained in:
Greg Clayton 2010-09-13 04:34:30 +00:00
parent 9df87c1706
commit ffc1d6672d
1 changed files with 7 additions and 2 deletions

View File

@ -136,14 +136,19 @@ StackFrame::StackFrame
m_flags.Set (eSymbolContextTarget);
}
if (m_sc.module_sp.get() == NULL && pc_addr.GetSection())
Module *pc_module = pc_addr.GetModule();
if (m_sc.module_sp.get() == NULL || m_sc.module_sp.get() != pc_module)
{
Module *pc_module = pc_addr.GetSection()->GetModule();
if (pc_module)
{
m_sc.module_sp = pc_module->GetSP();
m_flags.Set (eSymbolContextModule);
}
else
{
m_sc.module_sp.reset();
}
}
}