]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
dwarf: properly update all_comp_units_without_ranges in stash_comp_unit
authoroltolm <oleg.tolmatcev@gmail.com>
Fri, 26 Sep 2025 10:23:14 +0000 (12:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Sep 2025 10:23:14 +0000 (12:23 +0200)
commitba55d01e99a6dbc474d14d0238439015ea2f37a8
tree862c9f79dbb9ff5af40669137a32b6614fe7fe4c
parenteb4754587f5af963d71cd2e8deb16673d0d8ac95
dwarf: properly update all_comp_units_without_ranges in stash_comp_unit

        each->next_unit_without_ranges = file->all_comp_units_without_ranges;
-       file->all_comp_units_without_ranges = each->next_unit_without_ranges;

The second line of this code is probably a bug because it does nothing. It
was probably supposed to update "file->all_comp_units_without_ranges" to point
to "each" - the new head of the list.

Signed-off-by: oltolm <oleg.tolmatcev@gmail.com>
bfd/dwarf2.c