Re: Regression for --batch [Re: [RFC] Make python/lib/gdb and submodules proper Python modules]

Khoo Yit Phang
2012-09-14T06:53:00Z

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

Hi,

Here's a patch that points gdb/contrib/cc-with-tweaks.sh to the appropriate data-directory.

Yit
September 14, 2012

[-- Attachment #2: fix-cc-with-tweaks.txt --]
[-- Type: text/plain, Size: 744 bytes --]

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.

diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh
--- a/gdb/contrib/cc-with-tweaks.sh
+++ b/gdb/contrib/cc-with-tweaks.sh
@@ -46,13 +46,13 @@
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