testsuite: Of all the timeouts provided always select the largest

Maciej W. Rozycki macro@mips.com
Tue Feb 26 16:17:00 GMT 2008


On Tue, 26 Feb 2008, Jim Blandy wrote:

> I've often thought that what would be coolest would be for gdb_expect
> to accept a factor to be applied to the ambient timeout, rather than a
> new absolute number of seconds.  After all, the only thing a specific
> use of gdb_expect knows is that the response it's waiting for will
> take longer (or shorter?) than usual to arrive; it doesn't know
> anything about the absolute performance of the system under test.

 All the callers would have to be updated and unfortunately the dependency 
may not necessarily be linear.  For example for a fast target accessed 
through a slow port the factor for transferring data through, such as 
downloading a program image, would have to be higher than for a slow 
target accessed through a fast port.  Contrariwise the factor applied to 
actions involving execution on the respective systems.  In general I do 
agree it is a good idea, but that is a lot of work that best be well 
thought before commencing.

  Maciej



More information about the Gdb-patches mailing list