* lib/gdb.exp (gdb_test): Override timeout with board info.
authorNicholas Duffek <nsd@redhat.com>
Fri, 17 Nov 2000 17:16:24 +0000 (17:16 +0000)
committerNicholas Duffek <nsd@redhat.com>
Fri, 17 Nov 2000 17:16:24 +0000 (17:16 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index 6be7ded533840a12fd62d07546a6cc3a8386dc80..ead5e80c16a966b114bdb1259e2b74aa9f3f4090 100644 (file)
@@ -1,3 +1,7 @@
+2000-11-17  Nick Duffek  <nsd@redhat.com>
+
+       * lib/gdb.exp (gdb_test): Override timeout with board info.
+
 2000-11-17  Nick Duffek  <nsd@redhat.com>
 
        * gdb.base/display.exp: Don't kill running stub.  Add "again" to
index c7990d1c7f5d50f7374d9b35c1002d2d8ea6d66d..12c631a1a64f09936a5f1fe0cd1ca53e243dc985 100644 (file)
@@ -457,14 +457,18 @@ proc gdb_test { args } {
        }
     }
 
-    if [info exists timeout] {
-       set tmt $timeout;
+    if [target_info exists gdb,timeout] {
+       set tmt [target_info gdb,timeout];
     } else {
-       global timeout;
        if [info exists timeout] {
            set tmt $timeout;
        } else {
-           set tmt 60;
+           global timeout;
+           if [info exists timeout] {
+               set tmt $timeout;
+           } else {
+               set tmt 60;
+           }
        }
     }
     gdb_expect $tmt {