[gdb/testsuite] Generate .debug_aranges entry for dummy CU
authorTom de Vries <tdevries@suse.de>
Fri, 27 Aug 2021 14:52:44 +0000 (16:52 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 27 Aug 2021 14:52:44 +0000 (16:52 +0200)
commit6a6429e19b0aa87f95cd20cb9df2715e6d3df6f1
tree184c4a65b935ae7fab8b4ca9bf94f6d5cd8566ad
parent1d4a20b5769453ba69bd94c7731fc268fa21ff9a
[gdb/testsuite] Generate .debug_aranges entry for dummy CU

A best practise for DWARF [1] is to generate .debug_aranges entries for CUs
even if they have no address range.

Generate .debug_arange entries for the dummy CUs added by the DWARF assembler.

Tested on x86_64-linux.

[1] http://wiki.dwarfstd.org/index.php?title=Best_Practices
gdb/testsuite/lib/dwarf.exp