[Bug default/27213] alt_clear_dups: Assertion `child->die_dup == NULL' failed.
jakub at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Jan 21 07:58:22 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=27213
--- Comment #8 from Jakub Jelinek <jakub at redhat dot com> ---
author Jakub Jelinek <jakub@redhat.com>
Thu, 21 Jan 2021 07:43:08 +0000 (08:43 +0100)
committer Jakub Jelinek <jakub@redhat.com>
Thu, 21 Jan 2021 07:43:08 +0000 (08:43 +0100)
commit 47af8da7c8533924e96d1dbd97625b6a4dc35855
tree 4a924fd99e9ee98dcc4125836309dff06de39b19 tree
parent 40d5efd4edc52a7d2ed02f8400a9beb129053271 commit | diff
Assorted DW_FORM_implicit_const fixes
The problem is I think that write_abbrev is always called before write_info,
and the remapping of the DW_AT_decl_file/DW_AT_call_file DW_FORM_implicit_const
is done only in write_die which is called either recursively or from
write_info/write_types. Which means the DW_FORM_implicit_const value encoded
in the abbrev was never updated.
Other fixes include hashing the DW_FORM_implicit_const value in checksum_die
and more importantly comparing the values in die_eq_1.
2021-01-21 Jakub Jelinek <jakub@redhat.com>
PR dwz/27212
PR dwz/27213
* dwz.c (checksum_die): For DW_FORM_implicit_const hash t->values[i].
(die_eq_1): For DW_FORM_implicit_const compare t?->values[?].
(build_abbrevs_for_die): For DW_FORM_implicit_const on DW_AT_*_file
call line_htab_lookup too and store the result into t->values[j].
Otherwise, handle even file ids larger than 32-bit.
(write_die): For DW_FORM_implicit_const on DW_AT_*_file just j++
and continue, don't call line_htab_lookup nor adjust anything.
Simplify.
(alt_clear_dups): Fix function comment.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Dwz
mailing list