aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/lib/dwarf.exp5
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 7193942..eed6f45 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
+ * lib/dwarf.exp (Dwarf::lines::program::DW_LNS_set_file): New
+ function.
+
+2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
+
* lib/dwarf.exp (function_range): Allow compiler options to be
specified.
diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index 4371b56..93bde76 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
}