[gdb/testsuite] Support .debug_line v4 in dwarf assembler
authorTom de Vries <tdevries@suse.de>
Mon, 22 Nov 2021 08:14:15 +0000 (09:14 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 22 Nov 2021 08:14:15 +0000 (09:14 +0100)
commit6cb22d4a8e8f7852bc2202543a573ca8d011c421
tree224285d5798d2585ec853f95748f4da797f2a025
parent41505c0f3db2247bafde27d372eb461132a8cb3b
[gdb/testsuite] Support .debug_line v4 in dwarf assembler

The .debug_line header got a new field in v4:
maximum_operations_per_instruction.

Generate this field in the dwarf assembler, for now hardcoding the value to 1,
meaning non-VLIW.

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