]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: pass is_debug_types to dwarf2_per_cu constructor, make field private
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 5 Nov 2025 04:18:24 +0000 (23:18 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 7 Nov 2025 16:48:55 +0000 (11:48 -0500)
commit9452b2fb4608087b4fae0acbbb9b73685db7f600
treee9d3b89e6aa57e8cbafaacbc754db3bb7336200a
parentf0944db5ef10fc4161c3c183de4cb1c1a160fa4b
gdb/dwarf: pass is_debug_types to dwarf2_per_cu constructor, make field private

Make the field private to make it clear it is never meant to change.
Pass its value through the constructor, and add a getter.  The only
place that passes true is the signature_type constructor.

Change-Id: Ifb76bc015bca16696fd66cdf45c048b4ba713479
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/aranges.c
gdb/dwarf2/index-write.c
gdb/dwarf2/read-debug-names.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h