]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Require DW_LNE_end_sequence
authorTom de Vries <tdevries@suse.de>
Wed, 17 Apr 2024 10:55:00 +0000 (12:55 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 17 Apr 2024 10:55:00 +0000 (12:55 +0200)
commit0f91492fcf3e75a014c605bc61fc7eed8ad5100e
treec2d8428bf1d73afe84c2c907c917dc89018bb870
parentf0d556d14b1d1c3f8e2f9c13b08adca22e1b8c9c
[gdb/testsuite] Require DW_LNE_end_sequence

The dwarf standard requires that every line number program sequence ends
with a DW_LNE_end_sequence instruction.

Enforce this in the dwarf assembler for the last sequence in a line number
program (we have no means to enforce this for earlier sequences), and fix a
few test-case that don't have it.

Tested on aarch64-linux.

PR testsuite/31618
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31618
gdb/testsuite/gdb.dwarf2/dw2-noloc.exp
gdb/testsuite/gdb.dwarf2/dw2-symtab-includes-lookup.exp
gdb/testsuite/gdb.dwarf2/dw2-symtab-includes.exp
gdb/testsuite/lib/dwarf.exp