| Index: gdb/testsuite/gdb.base/async-shell.exp
|
| diff --git a/gdb/testsuite/gdb.base/async-shell.exp b/gdb/testsuite/gdb.base/async-shell.exp
|
| index 4949cf92225190ab7cd41ac80f777a130c28caa3..d68238271c95fe9afcd72f30045c9d81a4f76710 100644
|
| --- a/gdb/testsuite/gdb.base/async-shell.exp
|
| +++ b/gdb/testsuite/gdb.base/async-shell.exp
|
| @@ -29,9 +29,11 @@ if { [prepare_for_testing ${testfile}.exp ${testfile}] } {
|
| return -1
|
| }
|
|
|
| +set gdbindex_warning_re "warning: Skipping \[^\r\n\]+ \\.gdb_index section \[^\r\n\]*\r\nDo \"set use-deprecated-index-sections on\" before the file is read\r\nto use the section anyway\\."
|
| +
|
| gdb_test_no_output "set target-async on "
|
| gdb_test_no_output "set non-stop on"
|
| -gdb_test "run &" "Starting program: \[^\r\n\]*"
|
| +gdb_test "run &" "Starting program: \[^\r\n\]*(\r\n$gdbindex_warning_re)?"
|
|
|
| # `sleep 5' here would workaround the bug, do not sleep here.
|
| # "shell" could eat waitpid event from the asynchronous inferior process.
|
|
|