From cc06d68c8c854a3f1394da9dc0eb5365de5f6d71 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Fri, 16 Feb 2001 12:12:46 +0100 Subject: [PATCH] gdbinit: Rename to gdbinit.in. * .gdbinit: Rename to gdbinit.in. * gdbinit.in: New file, * configure.in: Generate .gdbinit from gdbinit.in. * configure: Regenerated. * Makefile.in (distclean): Always remove .gdbinit. From-SVN: r39759 --- gcc/ChangeLog | 8 ++++++++ gcc/Makefile.in | 2 +- gcc/configure | 28 +++++++++++++--------------- gcc/configure.in | 28 +++++++++++++--------------- gcc/{.gdbinit => gdbinit.in} | 0 5 files changed, 35 insertions(+), 31 deletions(-) rename gcc/{.gdbinit => gdbinit.in} (100%) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8181ef68605..abe8ba769b4e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2001-02-16 Gerald Pfeifer + + * .gdbinit: Rename to gdbinit.in. + * gdbinit.in: New file, + * configure.in: Generate .gdbinit from gdbinit.in. + * configure: Regenerated. + * Makefile.in (distclean): Always remove .gdbinit. + 2001-02-16 Jakub Jelinek * objc/objc-act.c (start_class): Register implemented_classes with diff --git a/gcc/Makefile.in b/gcc/Makefile.in index a78183ef931e..304fbd13bf51 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2363,7 +2363,7 @@ distclean: clean $(INTL_DISTCLEAN) lang.distclean -rm -f testsuite/{gcc,g++}.{log,sum} -rm -f intl/libintl.h libintl.h -rm -f cxxmain.c splay-tree.c obstack.c alloca.c hashtab.c safe-ctype.c - -rm -f mklibgcc libgcc.map gccbug configargs.h + -rm -f mklibgcc libgcc.map gccbug .gdbinit configargs.h -rm -f gcov.pod -rm -f fixinc/Makefile -rmdir cp f java objc fixinc intl po 2>/dev/null diff --git a/gcc/configure b/gcc/configure index c6ab580dbcc6..e30f26511aa5 100755 --- a/gcc/configure +++ b/gcc/configure @@ -6670,23 +6670,21 @@ do echo "lang.$t: $x" >> Make-hooks done -# If we're not building in srcdir, create .gdbinit. +# Create .gdbinit. -if test ! -f Makefile.in; then - echo "dir ." > .gdbinit - echo "dir ${srcdir}" >> .gdbinit - if test x$gdb_needs_out_file_path = xyes - then - echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit - fi - if test "x$subdirs" != x; then - for s in $subdirs - do - echo "dir ${srcdir}/$s" >> .gdbinit - done - fi - echo "source ${srcdir}/.gdbinit" >> .gdbinit +echo "dir ." > .gdbinit +echo "dir ${srcdir}" >> .gdbinit +if test x$gdb_needs_out_file_path = xyes +then + echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit +fi +if test "x$subdirs" != x; then + for s in $subdirs + do + echo "dir ${srcdir}/$s" >> .gdbinit + done fi +echo "source ${srcdir}/gdbinit.in" >> .gdbinit # Define variables host_canonical and build_canonical # because some Cygnus local changes in the Makefile depend on them. diff --git a/gcc/configure.in b/gcc/configure.in index 59387926084f..26d9e1e43176 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -1707,23 +1707,21 @@ do echo "lang.$t: $x" >> Make-hooks done -# If we're not building in srcdir, create .gdbinit. +# Create .gdbinit. -if test ! -f Makefile.in; then - echo "dir ." > .gdbinit - echo "dir ${srcdir}" >> .gdbinit - if test x$gdb_needs_out_file_path = xyes - then - echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit - fi - if test "x$subdirs" != x; then - for s in $subdirs - do - echo "dir ${srcdir}/$s" >> .gdbinit - done - fi - echo "source ${srcdir}/.gdbinit" >> .gdbinit +echo "dir ." > .gdbinit +echo "dir ${srcdir}" >> .gdbinit +if test x$gdb_needs_out_file_path = xyes +then + echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit +fi +if test "x$subdirs" != x; then + for s in $subdirs + do + echo "dir ${srcdir}/$s" >> .gdbinit + done fi +echo "source ${srcdir}/gdbinit.in" >> .gdbinit # Define variables host_canonical and build_canonical # because some Cygnus local changes in the Makefile depend on them. diff --git a/gcc/.gdbinit b/gcc/gdbinit.in similarity index 100% rename from gcc/.gdbinit rename to gcc/gdbinit.in -- 2.43.5