aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/lib/gdb.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 1747e1d..f6764d0 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -123,7 +123,10 @@ proc gdb_run_cmd {} {
exp_continue
}
- -re "Starting program: .*$" {}
+ # The following pattern matches up to to the first newline *only*.
+ # Using ``.*$'' could swallow up output that we attempt to match
+ # elsewhere.
+ -re "Starting program: \[^\n\]*" {}
}
}