]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Make sure that every debug_types sig8 is hashed
authorJosh Stone <jistone@redhat.com>
Thu, 3 Oct 2013 19:38:25 +0000 (12:38 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 3 Oct 2013 19:38:25 +0000 (12:38 -0700)
commit5dbbc5e32cc1fb3a7cf33e52e0bfc6f47097f3fe
tree7d2904feb5d3c00f8c6dde4bd284c9e95dbab241
parentacf126799e73e10f571da6c9be487b84a0a46f23
libdw: Make sure that every debug_types sig8 is hashed

When dwarf_formref_die can't find a sig8 in the hash, it walks
__libdw_intern_next_unit, and was then adding those to the hash.
However, if dwarf_offdie_types is called earlier, which also uses that
next_unit, then they are missed from the hash (and never revisited).

This patch makes __libdw_intern_next_unit do the sig8 hash insert, so no
type unit is ever missed.

Signed-off-by: Josh Stone <jistone@redhat.com>
libdw/ChangeLog
libdw/dwarf_formref_die.c
libdw/libdw_findcu.c
tests/ChangeLog
tests/Makefile.am
tests/run-typeiter.sh
tests/typeiter2.c [new file with mode: 0644]