aboutsummaryrefslogtreecommitdiff
path: root/gdb/contrib/dwarf-to-dwarf-assembler.py
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-10-18 14:33:06 -0600
committerTom Tromey <tom@tromey.com>2025-10-20 17:27:58 -0600
commita83612ba7526757568305b2f452167919ce3579d (patch)
treee8d37acf13f86ec1031a474f9beeb0fa29d220c2 /gdb/contrib/dwarf-to-dwarf-assembler.py
parenta2ad69674214f6f3fb2f4b9f2a39db6fa81415c2 (diff)
downloadbinutils-a83612ba7526757568305b2f452167919ce3579d.zip
binutils-a83612ba7526757568305b2f452167919ce3579d.tar.gz
binutils-a83612ba7526757568305b2f452167919ce3579d.tar.bz2
Only set call site if not empty
In an earlier discussion, I noted that most compunit_symtabs do not have a call-site hash table, so inlining the object into compunit_symtab did not make sense. It turns out that this is not entirely true -- while most compunit_symtabs do not have any data in this object, the object itself is always created. This in turn is a regression introduced by commit de2b4ab5 ("Convert dwarf2_cu::call_site_htab to new hash table"). This patch fixes the issue by arranging to only store a call-site hash table when it is non-empty. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/contrib/dwarf-to-dwarf-assembler.py')
0 files changed, 0 insertions, 0 deletions