diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 1994-07-20 17:29:02 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 1994-07-20 17:29:02 +0000 |
commit | 959fea03b51d7106fe2fa8362c9e74d4085927fb (patch) | |
tree | ac658a72f34d402e169d72e241fa1aea850e037f /gdb/testsuite | |
parent | 4f2ec2eeb86254e6d29fc86f899e4372984f985d (diff) | |
download | gdb-959fea03b51d7106fe2fa8362c9e74d4085927fb.zip gdb-959fea03b51d7106fe2fa8362c9e74d4085927fb.tar.gz gdb-959fea03b51d7106fe2fa8362c9e74d4085927fb.tar.bz2 |
Changed pattern in gdb_run_cmd to match up to the first newline only.
The old pattern used ".*$", which could, and did, swallow up output
that we were attempting to match elsewhere.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 5 |
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\]*" {} } } |