diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2025-03-05 00:06:41 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2025-03-05 11:58:31 -0500 |
commit | f99ba1e18d0f6a05685c1a5512614392af046828 (patch) | |
tree | 02e5fc3e2101cc2a65b57f92c8d06ae9d9f57a63 /gdb/ada-lang.c | |
parent | a433a6f8bc3d11ec00d53d1a99d60b8f048bd1b7 (diff) | |
download | binutils-f99ba1e18d0f6a05685c1a5512614392af046828.zip binutils-f99ba1e18d0f6a05685c1a5512614392af046828.tar.gz binutils-f99ba1e18d0f6a05685c1a5512614392af046828.tar.bz2 |
gdb/dwarf: change htabs holding dwo_unit objects to gdb::unordered_set
Change a few occurences of htabs holding `dwo_unit *` values, using
their signature as identity, to gdb::unordered_set.
allocate_dwo_unit_table and allocate_dwp_loaded_cutus_table appeared to
create hash tables with identical behavior, so they both use the same
set type now.
The only expected change in behavior is that when there are multiple
units with the same signature, we will now keep the unit previously in
the set, rather than overwriting it. But this seems ok, as it's a case
of bad DWARF.
Also, in the complaint in create_debug_type_hash_table, I think we
previously erroneously printed the same sect_off twice.
Change-Id: I57739977735ee1fd5c7b754107f5624f0621baa5
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions