aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 31cdc4e..efd0910 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -25,7 +25,11 @@
global GDB
if ![info exists GDB] then {
- set GDB [findfile $base_dir/../gdb $base_dir/../gdb [transform gdb ]]
+ if [file exists $base_dir/../gdb] then {
+ set GDB $base_dir/../gdb
+ } else {
+ set GDB [transform gdb]
+ }
}
global GDBFLAGS