mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-16 04:20:59 +00:00
Fixed an assertion that happened when debugging DWARF in .o files with debug
map on macosx. llvm-svn: 113737
This commit is contained in:
parent
9df87c1706
commit
ffc1d6672d
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user