Add initializers to comp_unit_head
authorTom Tromey <tom@tromey.com>
Sat, 16 Jul 2022 01:05:29 +0000 (19:05 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 26 Dec 2022 18:01:10 +0000 (11:01 -0700)
commit4d78ce772370fa48b9a749f81205076f26eba846
treea26f1109b9cf24c35a21beaa4a02baee61bb04e1
parent639601f90d1fda494e1d9c17b7f71d31e3b0a5e3
Add initializers to comp_unit_head

PR symtab/29343 points out that it would be beneficial if
comp_unit_head had a constructor and used initializers.  This patch
implements this.  I'm unsure if this is sufficient to close the bug,
but at least it's a step.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29343
gdb/dwarf2/comp-unit-head.h
gdb/dwarf2/cu.h
gdb/dwarf2/read.c
gdb/dwarf2/read.h