aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2025-02-17 14:59:32 -0500
committerSimon Marchi <simon.marchi@efficios.com>2025-02-19 11:14:41 -0500
commite3f9a1e14ac8694d0eb8e4cfa88f16510cf23b6b (patch)
tree83bc28afe543cde0422e9ad9eaf4dede253d2c0e /gdb/testsuite
parent863a3131b86dd57ea26d5766eb8fae73449a32ff (diff)
downloadbinutils-e3f9a1e14ac8694d0eb8e4cfa88f16510cf23b6b.zip
binutils-e3f9a1e14ac8694d0eb8e4cfa88f16510cf23b6b.tar.gz
binutils-e3f9a1e14ac8694d0eb8e4cfa88f16510cf23b6b.tar.bz2
gdb/dwarf: pass dwarf2_per_bfd to dwarf2_per_cu_data constructor
Pass a dwarf2_per_bfd to the constructor of dwarf2_per_cu_data and set the per_bfd field there. All "real" instantiations of dwarf2_per_cu_data must have a valid, non-nullptr dwarf2_per_bfd backlink, this makes it a bit more obvious. The instantiations of dwarf2_per_cu_data that receive a nullptr dwarf2_per_bfd are the ones used to do hash map lookups and the ones used in selftests. Remove an unnecessary assignment of per_bfd in fill_in_sig_entry_from_dwo_entry: the per_bfd field is already set when the signatured_type object is constructor (before that, it was set in allocate_signatured_type). Change-Id: Ifeebe55fdb1bc2de4de9c852033fafe8abdfde8a Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite')
0 files changed, 0 insertions, 0 deletions