fix comparing array subrange DIEs
authorDodji Seketeli <dodji@redhat.com>
Fri, 30 Dec 2022 23:43:51 +0000 (00:43 +0100)
committerDodji Seketeli <dodji@redhat.com>
Sun, 1 Jan 2023 17:21:56 +0000 (18:21 +0100)
commit24a219d905ad61710d2a04a1a5e94bb15d3687dd
treecceee0994ad86cd8f2732724041b12fa7a6c8579
parente02d3b85e321a873f3a0a4b788cc93e53e14a5bb
fix comparing array subrange DIEs

When looking at something else in the DWARF reader, I noticed that the
DIE comparison algorithm for DW_TAG_subprogram DIEs was not taking
into account non-set DW_AT_upper_bound attributes.

Fixed thus.

* src/abg-dwarf-reader.cc (compare_dies): For DW_TAG_subprogram,
non-set DW_AT_{lower,upper}_bound is not the same as when they are
set to zero.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-dwarf-reader.cc