From: Tom Tromey Date: Sun, 14 Mar 2021 17:41:46 +0000 (-0600) Subject: Set dwarf2_per_cu_data::m_header_read_in X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9f172c6b7a8f81e482568adecbea17860b5577c;p=binutils-gdb.git 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 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set m_header_read_in. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b42a391b3f9..387d2d54502 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-03-14 Tom Tromey + + * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set + m_header_read_in. + 2021-03-13 Tom Tromey * dwarf2/read.c (struct partial_die_info): Update. diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 3b72a96affe..dcf161fa359 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -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;