From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Fernando Nasser Cc: GDB Discussion Subject: Re: gdb_expect and default{} vs timeout{} Date: Fri, 16 Feb 2001 08:45:00 -0000 Message-id: <3A8D57F0.30BE78A0@cygnus.com> References: <3A8B69C1.D059D535@cygnus.com> <3A8CCDD5.32AF948D@redhat.com> X-SW-Source: 2001-02/msg00217.html Fernando Nasser wrote: > Sorry for the delay. This is definitly far from urgent. Thanks for the answer :-) > You are right, this is sort of weird. > > "default" is equivalent to `"eof" or "timeout"'. > > If you want to do the same thing in both "eof" and "timeout" conditions, > then use "default" instead (just to save typing). Ah! OK. > I don't think the code above, although redundant, will cause any harm. > Probably the default clause will take precedence for being specified > first, so the timeout clause is never used. Yes, that is what I saw. I was getting the default case rather than timeout case printed when a timeout occured. Andrew