aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-11-22 09:14:15 +0100
committerTom de Vries <tdevries@suse.de>2021-11-22 09:14:15 +0100
commit6cb22d4a8e8f7852bc2202543a573ca8d011c421 (patch)
tree224285d5798d2585ec853f95748f4da797f2a025 /gdb
parent41505c0f3db2247bafde27d372eb461132a8cb3b (diff)
downloadgdb-6cb22d4a8e8f7852bc2202543a573ca8d011c421.zip
gdb-6cb22d4a8e8f7852bc2202543a573ca8d011c421.tar.gz
gdb-6cb22d4a8e8f7852bc2202543a573ca8d011c421.tar.bz2
[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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-lines.exp2
-rw-r--r--gdb/testsuite/lib/dwarf.exp4
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-lines.exp b/gdb/testsuite/gdb.dwarf2/dw2-lines.exp
index cde602f..5a5888a 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-lines.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-lines.exp
@@ -137,7 +137,7 @@ set cv_low 2
set cv_high 4
set lv_low 2
-set lv_high 3
+set lv_high 4
for { set cv $cv_low } { $cv <= $cv_high } { incr cv } {
for { set lv $lv_low } { $lv <= $lv_high } { incr lv } {
diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index d6126ca..fd914c3 100644
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -2239,6 +2239,10 @@ namespace eval Dwarf {
define_label $header_len_label
_op .byte 1 "minimum_instruction_length"
+ if { $_unit_version >= 4 } {
+ # Assume non-VLIW for now.
+ _op .byte 1 "maximum_operations_per_instruction"
+ }
_op .byte $_default_is_stmt "default_is_stmt"
_op .byte 1 "line_base"
_op .byte 1 "line_range"