summaryrefslogtreecommitdiff
path: root/gcc/configure.lang
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1997-08-02 20:10:15 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1997-08-02 20:10:15 +0000
commit797efb892bf98da46aa5f4ee697d66e19f1490ed (patch)
tree8d40bf3635198a547732ce4c062a7d2396db384c /gcc/configure.lang
parent063295fbfabdcdb82a549d7d5415e2713566ae77 (diff)
downloadgcc-797efb892bf98da46aa5f4ee697d66e19f1490ed.tar.gz
* configure.lang: Fix building of .gdbinit for oldstyle lang subdirs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14629 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.lang')
-rw-r--r--gcc/configure.lang13
1 files changed, 4 insertions, 9 deletions
diff --git a/gcc/configure.lang b/gcc/configure.lang
index daaac58dd4f..8f25898062d 100644
--- a/gcc/configure.lang
+++ b/gcc/configure.lang
@@ -27,7 +27,7 @@ savesrcdir=$srcdir
for subdir in . $oldstyle_subdirs
do
# We only want to do this in language subdirs, but we have to handle
- # the case of $subdirs = "".
+ # the case of $oldstyle_subdirs = "".
if [ $subdir = . ]
then
continue
@@ -69,17 +69,12 @@ do
rm -f .gdbinit
echo "dir ." > .gdbinit
echo "dir ${srcdir}" >> .gdbinit
+ echo "dir ${mainsrcdir}" >> .gdbinit
if [ x$gdb_needs_out_file_path = xyes ]
then
- echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
+ echo "dir ${mainsrcdir}/config/"`dirname ${out_file}` >> .gdbinit
fi
- if [ "x$subdirs" != x ]; then
- for s in $subdirs
- do
- echo "dir ${srcdir}/$s" >> .gdbinit
- done
- fi
- echo "source ${srcdir}/.gdbinit" >> .gdbinit
+ echo "source ${mainsrcdir}/.gdbinit" >> .gdbinit
;;
esac