]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: make dwarf2_per_bfd::dwo_files a gdb::unordered_set
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 5 Mar 2025 05:06:42 +0000 (00:06 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 5 Mar 2025 16:58:31 +0000 (11:58 -0500)
commit76ee822b86e86a548d00849202c10fdc0b397ac1
tree7d055afe58415db4ffd51a79348e8744d91b9ebe
parentf99ba1e18d0f6a05685c1a5512614392af046828
gdb/dwarf: make dwarf2_per_bfd::dwo_files a gdb::unordered_set

Change the dwarf2_per_bfd::dwo_files htab to a gdb::unordered_set.

No behavior change expected, except maybe the failure case in
lookup_dwo_cutu.  If open_and_init_dwo_file returns nullptr, the
previous code would leave the slot value empty (nullptr).  Is this
legit?  With the new hash table, the only thing we can do really is not
attempt to insert the nullptr value.

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