mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
Added a check to the Section to make sure we don't
return sections that don't have valid modules. <rdar://problem/11605824> llvm-svn: 160141
This commit is contained in:
@@ -184,6 +184,11 @@ Section::ResolveContainedAddress (addr_t offset, Address &so_addr) const
|
||||
{
|
||||
so_addr.SetOffset(offset);
|
||||
so_addr.SetSection(const_cast<Section *>(this)->shared_from_this());
|
||||
|
||||
#ifdef LLDB_CONFIGURATION_DEBUG
|
||||
// For debug builds, ensure that there are no orphaned (i.e., moduleless) sections.
|
||||
assert(GetModule().get());
|
||||
#endif
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user