aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-14 11:41:46 -0600
committerTom Tromey <tom@tromey.com>2021-03-14 11:50:01 -0600
commita9f172c6b7a8f81e482568adecbea17860b5577c (patch)
tree13e14b9594909e2d8b5615f556032aae5bf923ca /gdb
parent933721ed0c95b53773b43874baa2ee82236f80b1 (diff)
downloadgdb-a9f172c6b7a8f81e482568adecbea17860b5577c.zip
gdb-a9f172c6b7a8f81e482568adecbea17860b5577c.tar.gz
gdb-a9f172c6b7a8f81e482568adecbea17860b5577c.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2/read.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b42a391..387d2d5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 3b72a96..dcf161f 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;