gdb_expect and default{} vs timeout{}

Andrew Cagney ac131313@cygnus.com
Wed Feb 14 21:36:00 GMT 2001


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



More information about the Gdb mailing list