Re: gdb_expect and default{} vs timeout{}

Michael Elizabeth Chastain
2001-02-14T21:48:00Z

> 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