From: Andrew Burgess Date: Mon, 23 Mar 2020 15:11:48 +0000 (+0000) Subject: gdb/testsuite: Add support for DW_LNS_set_file to DWARF compiler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34e9a9fa0a18fc544bc8ec3dc9e02096be1e4335;p=binutils-gdb.git gdb/testsuite: Add support for DW_LNS_set_file to DWARF compiler Extend the Dejagnu DWARF compiler to support DW_LNS_set_file opcode. This will be used in a later commit. There should be no change in the testsuite after this commit. gdb/testsuite/ChangeLog: * lib/dwarf.exp (Dwarf::lines::program::DW_LNS_set_file): New function. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7193942ac17..eed6f45279f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-04-02 Andrew Burgess + + * lib/dwarf.exp (Dwarf::lines::program::DW_LNS_set_file): New + function. + 2020-04-02 Andrew Burgess * lib/dwarf.exp (function_range): Allow compiler options to be diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index 4371b56d4de..93bde76de35 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -1454,6 +1454,11 @@ namespace eval Dwarf { _op .sleb128 ${offset} } + proc DW_LNS_set_file {num} { + _op .byte 4 + _op .sleb128 ${num} + } + foreach statement $statements { uplevel 1 $statement }