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.
This commit is contained in:
parent
4f2ec2eeb8
commit
959fea03b5
1 changed files with 4 additions and 1 deletions
|
@ -123,7 +123,10 @@ proc gdb_run_cmd {} {
|
||||||
exp_continue
|
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\]*" {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue