OSDN Git Service

* configure.lang: Fix building of .gdbinit for oldstyle lang subdirs.
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Aug 1997 20:10:15 +0000 (20:10 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Aug 1997 20:10:15 +0000 (20:10 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14629 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/configure.lang

index daaac58..8f25898 100644 (file)
@@ -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