diff options
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-ranges.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-ranges.exp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp index 8566e00..288fc94 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp @@ -35,7 +35,6 @@ if !$gcc_compiled { standard_testfile .c -2.c -3.c set asmfile [standard_output_file ${testfile}.s] set asmfile2 [standard_output_file ${testfile}2.s] -set asmfile3 [standard_output_file ${testfile}3.s] set objfile [standard_output_file ${testfile}.o] set objfile2 [standard_output_file ${testfile}2.o] set objfile3 [standard_output_file ${testfile}3.o] @@ -55,8 +54,7 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${asmfile2}" assembly {}] != # STABS compilation is intentional as it tests the STABS lookup where is no # partial_symtab->psymtabs_addrmap supported for that CU (Compilation Unit) in # a file containing psymtabs_addrmap-supporting DWARF CUs. -if {[gdb_compile "${srcdir}/${subdir}/${srcfile3}" "${asmfile3}" assembly {}] != "" - || [gdb_compile "${asmfile3}" "${objfile3}" object {additional_flags=-gstabs}] != "" } { +if {[gdb_compile "${srcdir}/${subdir}/${srcfile3}" "${objfile3}" object {additional_flags=-gstabs}] != "" } { return -1 } @@ -82,12 +80,5 @@ gdb_test "info line func" "Line \[0-9\]* of .* starts at address .* and ends at gdb_test "info line main2" "Line \[0-9\]* of .* starts at address .* and ends at .*" gdb_test "info line func2" "Line \[0-9\]* of .* starts at address .* and ends at .*" -set test "info line main3" -gdb_test_multiple $test $test { - -re "Line \[0-9\]* of .* starts at address .* and ends at .*\r\n$gdb_prompt $" { - pass $test - } - -re "Line \[0-9\]* of .* is at address .* but contains no code\\.\r\n$gdb_prompt $" { - kfail symtab/12497 $test - } -} +gdb_test "info line main3" \ + "Line \[0-9\]* of .* starts at address .* and ends at .*" |