This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb_expect and default{} vs timeout{}
- To: ac131313 at cygnus dot com, gdb at sources dot redhat dot com
- Subject: Re: gdb_expect and default{} vs timeout{}
- From: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Date: Wed, 14 Feb 2001 21:48:44 -0800
> If there is a default, will the timeout action ever occure?
It looks like default and timeout are synonyms.
# dejagnu/lib/remote.exp
# proc remote_expect
if { ${x} == "eof" } {
set save_next 1;
} elseif { ${x} == "default" || ${x} == "timeout" } {
if { $error_sect == "" } {
set save_next 1;
}
}
All I know is what I see in the source. I don't know why.
Michael