aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/guality
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2018-06-22 20:56:08 +0000
committerTom de Vries <vries@gcc.gnu.org>2018-06-22 20:56:08 +0000
commit73607ff9ec812d546fcd89e136dac482d9684371 (patch)
tree02c50d4f107976fe43efa23d29ab973232931d54 /gcc/testsuite/gcc.dg/guality
parentbe56f2c4730a3d28389f7ff757fb3b7137bd2e57 (diff)
downloadgcc-73607ff9ec812d546fcd89e136dac482d9684371.zip
gcc-73607ff9ec812d546fcd89e136dac482d9684371.tar.gz
gcc-73607ff9ec812d546fcd89e136dac482d9684371.tar.bz2
[testsuite/guality] Use buildarea gdb by default in combined build
2018-06-22 Tom de Vries <tdevries@suse.de> * g++.dg/guality/guality.exp (guality_gdb_name): Default to $rootme/../gdb/gdb, if available. * gcc.dg/guality/guality.exp (guality_gdb_name): Same. * gfortran.dg/guality/guality.exp (guality_gdb_name): Same. From-SVN: r261935
Diffstat (limited to 'gcc/testsuite/gcc.dg/guality')
-rw-r--r--gcc/testsuite/gcc.dg/guality/guality.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/guality/guality.exp b/gcc/testsuite/gcc.dg/guality/guality.exp
index 7eebd27..2a90ec3 100644
--- a/gcc/testsuite/gcc.dg/guality/guality.exp
+++ b/gcc/testsuite/gcc.dg/guality/guality.exp
@@ -38,6 +38,9 @@ global GDB
if ![info exists ::env(GUALITY_GDB_NAME)] {
if [info exists GDB] {
set guality_gdb_name "$GDB"
+ } elseif [file exists $rootme/../gdb/gdb] {
+ # If we're doing a combined build, and gdb is available, use it.
+ set guality_gdb_name "$rootme/../gdb/gdb"
} else {
set guality_gdb_name "[transform gdb]"
}