gdb_expect and default{} vs timeout{}

Andrew Cagney
2001-02-14T21:36:00Z

Hello,

This is kind of a dejagnu question. In pthreads.exp there is the code:

gdb_expect {
....
default {
fail "continue to bkpt at common_routine in thread 2
(default)"
}
timeout {
fail "continue to bkpt at common_routine in thread 2
(timeout)"
}
}

what I don't understand is the purpose that both of these serve. If
there is a default, will the timeout action ever occure?

Andrew