[gdb/testsuite] Support .debug_aranges in dwarf assembly
authorTom de Vries <tdevries@suse.de>
Fri, 27 Aug 2021 14:38:53 +0000 (16:38 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 27 Aug 2021 14:38:53 +0000 (16:38 +0200)
commit9f63756509bc44663c9d15c7b9578cedb406e356
tree199592beaf3d6a5286a23386410151169ebe7e11
parent698c974ffc97f845f65d2e93d31bdbb1b24d6caf
[gdb/testsuite] Support .debug_aranges in dwarf assembly

Add a proc aranges such that we can generate .debug_aranges sections in dwarf
assembly using:
...
  cu { label cu_label } {
  ...
  }

  aranges {} cu_label {
    arange $addr $len [<comment>] [$segment_selector]
  }
...

Tested on x86_64-linux.
gdb/testsuite/lib/dwarf.exp