gdb/testsuite: add .debug_rnglists tests
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 2 Feb 2021 15:40:52 +0000 (10:40 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 2 Feb 2021 15:40:52 +0000 (10:40 -0500)
commit962effa79018f57766d9aee21493f616801778dc
tree7ed2b2d492b4e7f3f48f7ac4b1df87fde6356109
parenta1c4010369aaa3ead33b7a5c248be9693d51b856
gdb/testsuite: add .debug_rnglists tests

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

Add a new "rnglists" procedure to the DWARF assembler, to allow
generating .debug_rnglists sections.  A trivial change is required to
support the DWARF 5 CU header layout.

gdb/testsuite/ChangeLog:

PR gdb/26813
* lib/dwarf.exp (_handle_DW_FORM): Handle DW_FORM_rnglistx.
(cu): Generate header for DWARF 5.
(rnglists): New proc.
* gdb.dwarf2/rnglists-multiple-cus.exp: New.
* gdb.dwarf2/rnglists-sec-offset.exp: New.

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