From: Doug Evans Date: Sat, 2 Aug 1997 20:10:15 +0000 (+0000) Subject: * configure.lang: Fix building of .gdbinit for oldstyle lang subdirs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4caa6262f7ff95f1521cbb8e7ca46f6235194000;p=gcc.git * configure.lang: Fix building of .gdbinit for oldstyle lang subdirs. From-SVN: r14629 --- 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