X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fcc-with-index.sh;h=22eefaacbff339ed4f8006322fba321a7acf9db8;hb=a95babbf381faac591ef74244aba6b399448c653;hp=4608629f39ce77c0026fdbc9483b25dd59e68448;hpb=ea65fe05d0a9bfc97c212622175b9cf24d08aaa0;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/cc-with-index.sh b/gdb/cc-with-index.sh index 4608629f39..22eefaacbf 100644 --- a/gdb/cc-with-index.sh +++ b/gdb/cc-with-index.sh @@ -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 . # 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