I noticed that nothing in dwarf2/read.c sets
dwarf2_per_cu_data::m_header_read_in. This patch adds the appropriate
assignment.
gdb/ChangeLog
2021-03-14 Tom Tromey <tom@tromey.com>
* dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
m_header_read_in.
+2021-03-14 Tom Tromey <tom@tromey.com>
+
+ * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
+ m_header_read_in.
+
2021-03-13 Tom Tromey <tom@tromey.com>
* dwarf2/read.c (struct partial_die_info): Update.
read_comp_unit_head (&m_header, info_ptr, this->section,
rcuh_kind::COMPILE);
+
+ m_header_read_in = true;
}
return &m_header;