Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: gdb_expect and default{} vs timeout{}
@ 2001-02-14 21:48 Michael Elizabeth Chastain
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Elizabeth Chastain @ 2001-02-14 21:48 UTC (permalink / raw)
  To: ac131313, gdb

> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread
* gdb_expect and default{} vs timeout{}
@ 2001-02-14 21:36 Andrew Cagney
  2001-02-15 22:53 ` Fernando Nasser
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2001-02-14 21:36 UTC (permalink / raw)
  To: GDB Discussion

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-02-16  8:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-14 21:48 gdb_expect and default{} vs timeout{} Michael Elizabeth Chastain
  -- strict thread matches above, loose matches on Subject: below --
2001-02-14 21:36 Andrew Cagney
2001-02-15 22:53 ` Fernando Nasser
2001-02-16  8:45   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox