objs-gcc.sh: Set up the GDB testsuite even if the gdb installed is just called 'gdb'.
authorGeoffrey Keating <geoffk@geoffk.org>
Sun, 23 Dec 2007 23:50:32 +0000 (23:50 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Sun, 23 Dec 2007 23:50:32 +0000 (23:50 +0000)
* objs-gcc.sh: Set up the GDB testsuite even if the gdb installed
is just called 'gdb'.

From-SVN: r131151

contrib/regression/ChangeLog
contrib/regression/objs-gcc.sh

index 11460d4..d2dcb1b 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-23  Geoff Keating  <geoffk@geoffk.org>
+
+       * objs-gcc.sh: Set up the GDB testsuite even if the gdb installed
+       is just called 'gdb'.
+
 2007-12-22  Geoff Keating  <geoffk@geoffk.org>
 
        * btest-gcc.sh (TESTLOGS): Add gfortran, and optionally libgomp.
index d926f8b..9099850 100755 (executable)
@@ -113,7 +113,7 @@ else
   make install || exit 1
 fi
 
-if [ -x $PREFIX/bin/$TARGET-gdb ] ; then
+if [ -x $PREFIX/bin/$TARGET-gdb -o -x $PREFIX/bin/gdb ] ; then
   mkdir -p $PREFIX/share/gdb-testsuite || exit 1
   cd $SOURCE/gdb/testsuite || exit 1
   find . -print | cpio -pdmu $PREFIX/share/gdb-testsuite || exit 1