aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorNicholas Duffek <nsd@redhat.com>2000-11-17 17:16:24 +0000
committerNicholas Duffek <nsd@redhat.com>2000-11-17 17:16:24 +0000
commit9d2e1bab9d9c7aad8ccfc4a89e930a37cfaf8318 (patch)
tree7c9bd95fbc22bf165143e81d60d23521ae10c380 /gdb/testsuite/lib
parent1aca8eb7fa344f6ebb2bd039307113012da7de4f (diff)
downloadgdb-9d2e1bab9d9c7aad8ccfc4a89e930a37cfaf8318.zip
gdb-9d2e1bab9d9c7aad8ccfc4a89e930a37cfaf8318.tar.gz
gdb-9d2e1bab9d9c7aad8ccfc4a89e930a37cfaf8318.tar.bz2
* lib/gdb.exp (gdb_test): Override timeout with board info.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index c7990d1..12c631a 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -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 {