mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
[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.
This commit is contained in:
@ -137,7 +137,7 @@ set cv_low 2
|
|||||||
set cv_high 4
|
set cv_high 4
|
||||||
|
|
||||||
set lv_low 2
|
set lv_low 2
|
||||||
set lv_high 3
|
set lv_high 4
|
||||||
|
|
||||||
for { set cv $cv_low } { $cv <= $cv_high } { incr cv } {
|
for { set cv $cv_low } { $cv <= $cv_high } { incr cv } {
|
||||||
for { set lv $lv_low } { $lv <= $lv_high } { incr lv } {
|
for { set lv $lv_low } { $lv <= $lv_high } { incr lv } {
|
||||||
|
@ -2239,6 +2239,10 @@ namespace eval Dwarf {
|
|||||||
define_label $header_len_label
|
define_label $header_len_label
|
||||||
|
|
||||||
_op .byte 1 "minimum_instruction_length"
|
_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 $_default_is_stmt "default_is_stmt"
|
||||||
_op .byte 1 "line_base"
|
_op .byte 1 "line_base"
|
||||||
_op .byte 1 "line_range"
|
_op .byte 1 "line_range"
|
||||||
|
Reference in New Issue
Block a user