* config/unix-gdb.exp (gdb_load): Add eof to expect statement.

This commit is contained in:
Jim Kingdon 1993-08-10 21:09:41 +00:00
parent ae039ff3ca
commit 283bd6dbf2

View File

@ -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
}
}