summaryrefslogtreecommitdiff
path: root/gdb/contrib
diff options
context:
space:
mode:
authorkhooyp <khooyp>2012-09-14 08:03:33 +0000
committerkhooyp <khooyp>2012-09-14 08:03:33 +0000
commit710c6a36dc307dc04bdddb08faca38f8ebf67bb9 (patch)
tree999b76b567c8c369d442f95694356ffa8977782f /gdb/contrib
parent10032a04d37de3a38544ca3efc85fd02de4cb228 (diff)
downloadgdb-710c6a36dc307dc04bdddb08faca38f8ebf67bb9.tar.gz
Point contrib/cc-with-tweaks.sh to the build-local data-directory.
gdb/ * contrib/cc-with-tweaks.sh (GDB): Add -data-directory data-directory as appropriate.
Diffstat (limited to 'gdb/contrib')
-rwxr-xr-xgdb/contrib/cc-with-tweaks.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh
index 7d7932c7181..bdbdf7dca5c 100755
--- a/gdb/contrib/cc-with-tweaks.sh
+++ b/gdb/contrib/cc-with-tweaks.sh
@@ -19,7 +19,8 @@
# This program requires gdb and objcopy in addition to gcc.
# 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.
+# respectively. Note that GDB should contain the gdb binary as well as the
+# -data-directory flag, e.g., "foo/gdb -data-directory foo/data-directory".
# We assume the current directory is either $obj/gdb or $obj/gdb/testsuite.
#
# Example usage:
@@ -46,13 +47,13 @@ if [ -z "$GDB" ]
then
if [ -f ./gdb ]
then
- GDB="./gdb"
+ GDB="./gdb -data-directory data-directory"
elif [ -f ../gdb ]
then
- GDB="../gdb"
+ GDB="../gdb -data-directory ../data-directory"
elif [ -f ../../gdb ]
then
- GDB="../../gdb"
+ GDB="../../gdb -data-directory ../../data-directory"
else
echo "$myname: unable to find usable gdb" >&2
exit 1