[gdb/testsuite] Add .debug_loc support in dwarf assembler
authorTom de Vries <tdevries@suse.de>
Thu, 14 Oct 2021 14:58:21 +0000 (16:58 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 14 Oct 2021 14:58:21 +0000 (16:58 +0200)
commit047ab79212fa6e8e17503d38f2a813546ea17bf2
tree01a8363a769bbd4d788d613b988042026240cccc
parenta1251fdcb58f99644c49b65d72507706f2d40200
[gdb/testsuite] Add .debug_loc support in dwarf assembler

Add .debug_loc support in the dwarf assembler, and use it in new test-case
gdb.dwarf2/loc-sec-offset.exp (which is based on
gdb.dwarf2/loclists-sec-offset.exp).

Tested on x86_64-linux.
gdb/testsuite/gdb.dwarf2/loc-sec-offset.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/loc-sec-offset.exp [new file with mode: 0644]
gdb/testsuite/lib/dwarf.exp