diff options
author | Yit Phang Khoo <khooyp@sourceware.org> | 2012-09-14 08:03:34 +0000 |
---|---|---|
committer | Yit Phang Khoo <khooyp@sourceware.org> | 2012-09-14 08:03:34 +0000 |
commit | 63b462666378cb44c54b7a00f3e323e6849e4f0e (patch) | |
tree | 3783fa96d6b1bc1f03c6c4644e1ba5af177d4db0 | |
parent | ddd7a8e76d39c3c3ce8285d2eb5a41c649017a76 (diff) | |
download | gdb-63b462666378cb44c54b7a00f3e323e6849e4f0e.zip gdb-63b462666378cb44c54b7a00f3e323e6849e4f0e.tar.gz gdb-63b462666378cb44c54b7a00f3e323e6849e4f0e.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rwxr-xr-x | gdb/contrib/cc-with-tweaks.sh | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index abd8d10..f9cf247 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu> + + Point contrib/cc-with-tweaks.sh to the build-local data-directory. + * contrib/cc-with-tweaks.sh (GDB): Add -data-directory + data-directory as appropriate. + 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com> * printcmd.c (ui_printf): Eliminate single-use variable diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh index 7d7932c..bdbdf7d 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 |