mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
* config/unix-gdb.exp (gdb_load): Add eof to expect statement.
This commit is contained in:
parent
ae039ff3ca
commit
283bd6dbf2
@ -140,9 +140,10 @@ proc gdb_load { arg } {
|
||||
return -1
|
||||
}
|
||||
eof {
|
||||
# It's possible this should be a FAIL. Usually it means GDB
|
||||
# dumped core.
|
||||
error "couldn't load $arg into $GDB (timed out)."
|
||||
# This is an attempt to detect a core dump, but seems not to
|
||||
# work. Perhaps we need to match .* followed by eof, in which
|
||||
# expect does not seem to have a way to do that.
|
||||
error "couldn't load $arg into $GDB (end of file)."
|
||||
return -1
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user