[gdb/testsuite] Add aranges in gdb.dwarf2/dwzbuildid.exp
authorTom de Vries <tdevries@suse.de>
Fri, 8 Sep 2023 10:27:02 +0000 (12:27 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 8 Sep 2023 10:27:02 +0000 (12:27 +0200)
commit7f49a8c074271efcf7930f4a476927155170a3d1
tree26776414fab0a61245c59affdb07297c253968bc
parent7993baae024b283113aeff34a1880e1b0360b711
[gdb/testsuite] Add aranges in gdb.dwarf2/dwzbuildid.exp

While investigating the execs of gdb.dwarf2/dwzbuildid.exp using readelf I ran
into a warning:
...
$ readelf -w dwzbuildid-ok > READELF
readelf: Warning: .debug_info offset of 0x2e in .debug_aranges section does not
point to a CU header.
...

AFAICT, the warning is incorrect, I've filed PR binutils/30835 about that.

While looking at the .debug_aranges section, I noticed that the entries for
the CUs generated by the dwarf assembler are missing.

Fix this by adding the missing .debug_aranges entries.

Tested on x86_64-linux.
gdb/testsuite/gdb.dwarf2/dwzbuildid.exp