aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/gdb.base/maint.exp4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp4
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/maint.exp b/gdb/testsuite/gdb.base/maint.exp
index 4b20087..667f373 100644
--- a/gdb/testsuite/gdb.base/maint.exp
+++ b/gdb/testsuite/gdb.base/maint.exp
@@ -466,6 +466,10 @@ gdb_test_multiple "maint info line-table" \
# Matches an end marker in the above.
exp_continue
}
+ -re "^\r\n" {
+ # Empty line between tables.
+ exp_continue
+ }
-re "^$gdb_prompt $" {
gdb_assert $saw_srcfile $gdb_test_name
}
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
index d55b7fd..1a4fe4a 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
@@ -173,6 +173,10 @@ gdb_test_multiple "maint info line-table gdb.dwarf2/dw2-ranges-base.c" \
incr end_seq_count
exp_continue
}
+ -re "^\r\n" {
+ # Empty lines between tables.
+ exp_continue
+ }
-re "^$gdb_prompt $" {
gdb_assert [expr $end_seq_count == 3] $gdb_test_name
}