gdb/
[deliverable/binutils-gdb.git] / gdb / cc-with-index.sh
index 9c95bef907968c69b62dc1f472ff9e08ddba36bf..22eefaacbff339ed4f8006322fba321a7acf9db8 100644 (file)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Wrapper around gcc to add the .gdb_index section when running the testsuite.
 
-# Copyright (C) 2010, 2011 Free Software Foundation, Inc.
+# Copyright (C) 2010-2012 Free Software Foundation, Inc.
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 3 of the License, or
@@ -16,8 +16,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # This program requires gdb and objcopy in addition to gcc.
-# The default values are gdb from the build tree and objdump from $PATH.
-# They may be overridden by setting environment variables GDB and OBJDUMP
+# The default values are gdb from the build tree and objcopy from $PATH.
+# They may be overridden by setting environment variables GDB and OBJCOPY
 # respectively.
 # We assume the current directory is either $obj/gdb or $obj/gdb/testsuite.
 #
@@ -40,6 +40,9 @@ then
     elif [ -f ../gdb ]
     then
        GDB="../gdb"
+    elif [ -f ../../gdb ]
+    then
+       GDB="../../gdb"
     else
        echo "$myname: unable to find usable gdb" >&2
        exit 1
This page took 0.026456 seconds and 4 git commands to generate.