diff options
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp b/gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp index 221bf7b..d5faf6f 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp @@ -26,7 +26,8 @@ standard_testfile .c -shlib.c -dw.S # Test for presence of complaint, with the lib relocated. proc_with_prefix test_relocated { exec_path lib_path complaint_re readnow_p } { - clean_restart $exec_path + clean_restart + gdb_load $exec_path gdb_load_shlib $lib_path if { ![runto_main] } { @@ -95,13 +96,13 @@ foreach_with_prefix ranges_sect {ranges rnglists} { cu {} { compile_unit { - {language @DW_LANG_C} - {name $srcfile2} - {ranges ${ranges_label} DW_FORM_sec_offset} + DW_AT_language @DW_LANG_C + DW_AT_name $srcfile2 + DW_AT_ranges ${ranges_label} DW_FORM_sec_offset } { subprogram { - {external 1 flag} - {name foo} + DW_AT_external 1 flag + DW_AT_name foo } } } @@ -122,13 +123,13 @@ foreach_with_prefix ranges_sect {ranges rnglists} { version 5 } { compile_unit { - {language @DW_LANG_C} - {name $srcfile2} - {ranges ${rnglists_label} DW_FORM_sec_offset} + DW_AT_language @DW_LANG_C + DW_AT_name $srcfile2 + DW_AT_ranges ${rnglists_label} DW_FORM_sec_offset } { subprogram { - {external 1 flag} - {name foo} + DW_AT_external 1 flag + DW_AT_name foo } } } |