]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Move producer checks to dwarf2_cu
authorTom Tromey <tom@tromey.com>
Fri, 31 Jan 2025 18:25:45 +0000 (11:25 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 20 Feb 2025 00:58:04 +0000 (17:58 -0700)
commitc91f9c8c0a28149b8da39b4403444afa45c9ffff
tree8ef651eb24bf6307a470a004eb4545c3a4595c39
parentf1462b65ff8c1cbfa2a52f875fb56ef020f56853
Move producer checks to dwarf2_cu

This changes the various producer-checking functions to be methods on
dwarf2_cu.  It adds a few new caching members as well -- every one
that could reasonably be done this way has been converted, with the
only exception being a gdbarch hook.

Note the new asserts in the accessors.  Without the earlier
prepare_one_comp_unit change, these could trigger in some modes.
gdb/dwarf2/cu.c
gdb/dwarf2/cu.h
gdb/dwarf2/macro.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h