This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gdb_expect and default{} vs timeout{}


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]