Set dwarf2_per_cu_data::m_header_read_in

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.
This commit is contained in:
Tom Tromey 2021-03-14 11:41:46 -06:00
parent 933721ed0c
commit a9f172c6b7
2 changed files with 7 additions and 0 deletions

View file

@ -24758,6 +24758,8 @@ dwarf2_per_cu_data::get_header () const
read_comp_unit_head (&m_header, info_ptr, this->section,
rcuh_kind::COMPILE);
m_header_read_in = true;
}
return &m_header;