aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-03-23 15:11:48 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-04-02 17:44:03 +0100
commit34e9a9fa0a18fc544bc8ec3dc9e02096be1e4335 (patch)
treef7cd82b04748ee955ef59bc582f05040c681ae23 /gdb
parent6a35491162b64ad5402f0558c275a603abc620a4 (diff)
downloadgdb-34e9a9fa0a18fc544bc8ec3dc9e02096be1e4335.zip
gdb-34e9a9fa0a18fc544bc8ec3dc9e02096be1e4335.tar.gz
gdb-34e9a9fa0a18fc544bc8ec3dc9e02096be1e4335.tar.bz2
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.
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
}