]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: remove type_unit_group
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 18 Mar 2025 03:16:25 +0000 (23:16 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 18 Mar 2025 19:45:09 +0000 (15:45 -0400)
commitc08c2adbb03ecd4fa9338932f26143389bf1135e
treeab847b683e99dd103ae96c648435002e4f0f65c7
parentd87251a45bceebbc90eed3161adb8ce75e35f959
gdb/dwarf: remove type_unit_group

The type_unit_group is an indirection between a stmt_list_hash (possible
dwo_unit + line table section offset) and a type_unit_group_unshareable
that provides no real value.  In dwarf2_per_objfile, we maintain a
stmt_list_hash -> type_unit_group mapping, and in dwarf2_per_objfile, we
maintain a type_unit_group_unshareable mapping.  The type_unit_group
type is empty and only exists to have an identity and to be a link
between the two mappings.

This patch changes it so that we have a single stmt_list_hash ->
type_unit_group_unshareable mapping.

Regression tested on Debian 12 amd64 with a bunch of DWARF target
boards.

Change-Id: I9c5778ecb18963f353e9dd058e0f8152f7d8930c
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/read.c
gdb/dwarf2/read.h