[RFA/testsuite] Reset the timeout duration at the start of each testcase.

Daniel Jacobowitz dan@codesourcery.com
Thu Feb 4 18:16:00 GMT 2010


On Thu, Feb 04, 2010 at 09:42:54PM +0400, Joel Brobecker wrote:
> Just something that occured to me: What if I changed the implementation
> to just store $timeout at the time gdb.exp is evaluated. From the user's
> perspective, the difference is that he would need to override the value
> of $timeout, which is an already-known variable, instead of setting the
> value of the new default_test_timeout variable.  Would that be ugly?
> 
> This isn't tested (it's getting late here), but this is what I have
> in mind:

Right, I think this would work fine and I like it.

Here's another trick that will make it less confusing about
initialization order.  How about we info exists to set
default_test_timeout from gdb_init, if we haven't yet?

I know I've worked with board files that loaded gdb.exp themselves.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list