lldb::addr_t m_byte_size = 0; ///< The size in bytes of this address range.
};
-// bool operator== (const AddressRange& lhs, const AddressRange& rhs);
-
} // namespace lldb_private
#endif // LLDB_CORE_ADDRESSRANGE_H
return ContainsFileAddress(addr);
}
-//
-// bool
-// AddressRange::Contains (const Address *addr) const
-//{
-// if (addr)
-// return Contains (*addr);
-// return false;
-//}
-
bool AddressRange::ContainsFileAddress(const Address &addr) const {
if (addr.GetSection() == m_base_addr.GetSection())
return (addr.GetOffset() - m_base_addr.GetOffset()) < GetByteSize();
static_cast<void *>(m_base_addr.GetSection().get()),
m_base_addr.GetOffset(), GetByteSize());
}
-//
-// bool
-// lldb::operator== (const AddressRange& lhs, const AddressRange& rhs)
-//{
-// if (lhs.GetBaseAddress() == rhs.GetBaseAddress())
-// return lhs.GetByteSize() == rhs.GetByteSize();
-// return false;
-//}