diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 814c6ded1e0..9256c071746 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2021-01-28 Tom de Vries + + * gdb.dwarf2/dw2-out-of-range-end-of-seq.exp: Add regexp to + "maint info line-table". Make PASS pattern more specific. Make + FAIL pattern work for -m32. + 2021-01-27 Lancelot SIX PR gdb/27133 diff --git a/gdb/testsuite/gdb.dwarf2/dw2-out-of-range-end-of-seq.exp b/gdb/testsuite/gdb.dwarf2/dw2-out-of-range-end-of-seq.exp index 7a32a01389c..42cfd0b61ec 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-out-of-range-end-of-seq.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-out-of-range-end-of-seq.exp @@ -84,11 +84,12 @@ if ![runto_main] { return -1 } -gdb_test_multiple "maint info line-table" "END with address 1 eliminated" { - -re -wrap "END *0x0*1 Y \r\n.*" { +set test "END with address 1 eliminated" +gdb_test_multiple "maint info line-table $srcfile$" $test { + -re -wrap "END *0x0*1 *Y \r\n.*" { fail $gdb_test_name } - -re -wrap "" { + -re -wrap "END *$hex *Y " { pass $gdb_test_name } }