gdb/
[deliverable/binutils-gdb.git] / gdb / cc-with-index.sh
index 4608629f39ce77c0026fdbc9483b25dd59e68448..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 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
@@ -50,6 +53,7 @@ OBJCOPY=${OBJCOPY:-objcopy}
 
 have_link=unknown
 next_is_output_file=no
+output_file=a.out
 
 for arg in "$@"
 do
This page took 0.025478 seconds and 4 git commands to generate.