diff options
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp b/gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp index 44d623b..583b230 100644 --- a/gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp +++ b/gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp @@ -21,7 +21,7 @@ require dwarf2_support standard_testfile _start.c debug-names.S set func_info_vars \ - [get_func_info _start [list debug additional_flags=-nostartfiles]] + [get_func_info _start [list debug ldflags=-nostartfiles]] # Create the DWARF. set asm_file [standard_output_file $srcfile2] @@ -35,16 +35,18 @@ Dwarf::assemble { } cu { label cu_label } { - compile_unit {{language @DW_LANG_C}} { + compile_unit { + DW_AT_language @DW_LANG_C + } { subprogram { - {DW_AT_name _start} - {DW_AT_low_pc $_start_start DW_FORM_addr} - {DW_AT_high_pc $_start_end DW_FORM_addr} + DW_AT_name _start + DW_AT_low_pc $_start_start DW_FORM_addr + DW_AT_high_pc $_start_end DW_FORM_addr } base_type { - {name int} - {byte_size 4 sdata} - {encoding @DW_ATE_signed} + DW_AT_name int + DW_AT_byte_size 4 sdata + DW_AT_encoding @DW_ATE_signed } } } @@ -57,8 +59,8 @@ Dwarf::assemble { } } -if [prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" \ - [list additional_flags=-nostartfiles]] { +if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" \ + [list ldflags=-nostartfiles]]} { return -1 } |