This adds a new member to dwarf2_per_cu_data that indicates whether
addresses have been seen for this CU. This is then set by the
.debug_aranges reader. The idea here is to detect when a CU does not
have address information, so that the new indexer will know to do
extra scanning in that case.
- baseaddr);
addrmap_set_empty (mutable_map, start, end - 1, per_cu);
}
+
+ per_cu->addresses_seen = true;
}
return true;
reading_dwo_directly (false),
tu_read (false),
m_header_read_in (false),
+ addresses_seen (false),
unit_type {},
lang (language_unknown)
{
it private at the moment. */
mutable bool m_header_read_in : 1;
+ /* If addresses have been read for this CU (usually from
+ .debug_aranges), then this flag is set. */
+ bool addresses_seen : 1;
+
/* The unit type of this CU. */
ENUM_BITFIELD (dwarf_unit_type) unit_type : 8;