aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-06-05 10:38:10 -0600
committerTom Tromey <tromey@adacore.com>2024-06-24 09:11:30 -0600
commit979114a1b39cbcbe61faeaf9fe65ead589ea1096 (patch)
treebe3b6777a4b7aa59819a00e1efd962d6a03c7a4d /gdb/dwarf2
parent9f71296fda412c315a8dde05b51d5163e3e2e53c (diff)
downloadbinutils-979114a1b39cbcbe61faeaf9fe65ead589ea1096.zip
binutils-979114a1b39cbcbe61faeaf9fe65ead589ea1096.tar.gz
binutils-979114a1b39cbcbe61faeaf9fe65ead589ea1096.tar.bz2
Prefer htab_traverse_noresize
A few spots in gdb were using htab_traverse. IMO this is almost never useful and htab_traverse_noresize should be preferred.
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r--gdb/dwarf2/cu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dwarf2/cu.c b/gdb/dwarf2/cu.c
index aae61cc..5cb2291 100644
--- a/gdb/dwarf2/cu.c
+++ b/gdb/dwarf2/cu.c
@@ -146,7 +146,8 @@ dwarf2_cu::mark ()
{
m_mark = true;
if (m_dependencies != nullptr)
- htab_traverse (m_dependencies.get (), dwarf2_mark_helper, per_objfile);
+ htab_traverse_noresize (m_dependencies.get (), dwarf2_mark_helper,
+ per_objfile);
}
}