diff options
author | Tom Tromey <tromey@adacore.com> | 2024-06-05 10:38:10 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-06-24 09:11:30 -0600 |
commit | 979114a1b39cbcbe61faeaf9fe65ead589ea1096 (patch) | |
tree | be3b6777a4b7aa59819a00e1efd962d6a03c7a4d /gdb/dwarf2 | |
parent | 9f71296fda412c315a8dde05b51d5163e3e2e53c (diff) | |
download | gdb-979114a1b39cbcbe61faeaf9fe65ead589ea1096.zip gdb-979114a1b39cbcbe61faeaf9fe65ead589ea1096.tar.gz gdb-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.c | 3 |
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); } } |