]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Move die_type_hash to dwarf2_per_objfile
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 25 Feb 2020 04:39:47 +0000 (23:39 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 12 May 2020 19:24:50 +0000 (15:24 -0400)
commit35f1c44ab7ce54c78fc1a4e339c4b141f0745abf
treed3f98da4d7b70cbaa912265bcf7791f011806f5d
parent60684704c1ecac0bff000fb7edfa378a953bb21c
Move die_type_hash to dwarf2_per_objfile

The die_type_hash field can't be shared between multiple obfiles, as it
holds `struct type` objects, which are objfile-specific.  Move it from
dwarf2_per_bfd to dwarf2_per_objfile and update all references.

gdb/ChangeLog:

* dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
struct dwarf2_per_objfile.
(struct dwarf2_per_objfile) <die_type_hash>: Move from struct
dwarf2_per_bfd.
* dwarf2/read.c (set_die_type): Update.
(get_die_type_at_offset): Update.
gdb/dwarf2/read.c
gdb/dwarf2/read.h