]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: add .debug_loclists tests
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 2 Feb 2021 15:40:52 +0000 (10:40 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 3 Feb 2021 15:31:47 +0000 (10:31 -0500)
commitc974ecf55d3f9750fa35b6b7b4644fb2ab19f36f
tree9cf3479ace59a89cd0371fe8c0707f106ea6f6ce
parent9b92ac35642635a5ec4b8d4c1eee76ee42248e4d
gdb/testsuite: add .debug_loclists tests

Add tests for the various issues fixed in the previous patches.

Add a new "loclists" procedure to the DWARF assembler, to allow
generating .debug_loclists sections.

gdb/testsuite/ChangeLog:

PR gdb/26813
* lib/dwarf.exp (_handle_DW_FORM): Handle DW_FORM_loclistx.
(loclists): New proc.
* gdb.dwarf2/loclists-multiple-cus.c: New.
* gdb.dwarf2/loclists-multiple-cus.exp: New.
* gdb.dwarf2/loclists-sec-offset.c: New.
* gdb.dwarf2/loclists-sec-offset.exp: New.

Change-Id: I209bcb2a9482762ae943e518998d1f7761f76928
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/loclists-sec-offset.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp [new file with mode: 0644]
gdb/testsuite/lib/dwarf.exp