#! /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
# 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.
#
elif [ -f ../gdb ]
then
GDB="../gdb"
+ elif [ -f ../../gdb ]
+ then
+ GDB="../../gdb"
else
echo "$myname: unable to find usable gdb" >&2
exit 1
have_link=unknown
next_is_output_file=no
+output_file=a.out
for arg in "$@"
do