Set dwarf2_per_cu_data::m_header_read_in
authorTom Tromey <tom@tromey.com>
Sun, 14 Mar 2021 17:41:46 +0000 (11:41 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 14 Mar 2021 17:50:01 +0000 (11:50 -0600)
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.

gdb/ChangeLog
gdb/dwarf2/read.c

index b42a391b3f9a88fd1e46f6a8a69e44aec5319a9d..387d2d545027696f4fa9d5baf7343cbd8a7b882b 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 3b72a96affe3fcaa6f2c131c15694b2e93a04032..dcf161fa359a825f6a353830e6d30dad015bebf8 100644 (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;