diff options
Diffstat (limited to 'gdb/testsuite/lib/dwarf.exp')
-rw-r--r-- | gdb/testsuite/lib/dwarf.exp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index cbb1bf6..94f6765 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -2349,11 +2349,7 @@ namespace eval Dwarf { string_ptr: _op .ascii [_quote $dirname] } - if { $_line_is_64 } { - _op .8byte $string_ptr - } else { - _op .4byte $string_ptr - } + _op_offset [expr $_line_is_64 ? 8 : 4] $string_ptr } } } @@ -2398,11 +2394,7 @@ namespace eval Dwarf { string_ptr: _op .ascii [_quote $filename] } - if { $_line_is_64 } { - _op .8byte $string_ptr - } else { - _op .4byte $string_ptr - } + _op_offset [expr $_line_is_64 ? 8 : 4] $string_ptr } } _op .uleb128 $diridx |