* gdbinit.in: New file.
authorIan Lance Taylor <ian@airs.com>
Mon, 31 Mar 1997 19:57:51 +0000 (19:57 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 31 Mar 1997 19:57:51 +0000 (19:57 +0000)
* .gdbinit: Remove.
* configure.in: Generate .gdbinit from gdbinit.in.
* configure: Rebuild.

gdb/.Sanitize
gdb/.gdbinit [deleted file]
gdb/ChangeLog
gdb/configure
gdb/configure.in
gdb/gdbinit.in [new file with mode: 0644]

index 670000655c5d7204ff89b9403fc14d625672cefa..1902f52b3eafcdff89e2860133f38194b1b8193c 100644 (file)
@@ -124,7 +124,6 @@ fi
 
 Things-to-keep:
 
-.gdbinit
 29k-share
 COPYING
 ChangeLog
@@ -236,6 +235,7 @@ gdb.gdb
 gdba.el
 gdbcmd.h
 gdbcore.h
+gdbinit.in
 gdbserver
 gdbthread.h
 gdbtypes.c
diff --git a/gdb/.gdbinit b/gdb/.gdbinit
deleted file mode 100644 (file)
index f60802e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-echo Setting up the environment for debugging gdb.\n
-
-set complaints 1
-
-b fatal
-
-b info_command
-commands
-       silent
-       return
-end
-
-dir ../mmalloc
-dir ../libiberty
-dir ../bfd
-set prompt (top-gdb) 
index aa15a5a8fac0736f298d9be22b9f67227fbd989c..1d67e8d20b634fcfb73e63eebc936bc85011b793 100644 (file)
@@ -1,3 +1,10 @@
+Mon Mar 31 14:55:53 1997  Ian Lance Taylor  <ian@cygnus.com>
+
+       * gdbinit.in: New file.
+       * .gdbinit: Remove.
+       * configure.in: Generate .gdbinit from gdbinit.in.
+       * configure: Rebuild.
+
 start-sanitize-tic80
 Sun Mar 30 12:28:24 1997  Fred Fish  <fnf@cygnus.com>
 
index 4fbc05fc47a3e9fe70da1f4e092429010da11ae0..7b09d45690cb2fb82dc3a3d6983bfd40b84fa3f1 100755 (executable)
@@ -3179,7 +3179,7 @@ done
 ac_given_srcdir=$srcdir
 ac_given_INSTALL="$INSTALL"
 
-trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 EOF
 cat >> $CONFIG_STATUS <<EOF
 
@@ -3314,7 +3314,7 @@ EOF
 
 cat >> $CONFIG_STATUS <<EOF
 
-CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
+CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
 EOF
 cat >> $CONFIG_STATUS <<\EOF
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
@@ -3546,14 +3546,6 @@ sed -e '/^TM_FILE[       ]*=/s,^TM_FILE[         ]*=[    ]*,&config/'"${gdb_target_cpu}"'/,
 /^NAT_FILE[    ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
 mv -f Makefile.tmp Makefile
 
-case ${srcdir} in
-.)
-;;
-*)
-grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
-echo "source ${srcdir}/.gdbinit" >> .gdbinit
-esac
-
 case x$CONFIG_HEADERS in
 xconfig.h:config.in)
 echo > stamp-h ;;
index 84f7c612997ad7b5918e297ca1445fb8d7abe1f6..4742f24a382e21895bf2821c861854f851e4dc9d 100644 (file)
@@ -460,7 +460,7 @@ fi
 AC_LINK_FILES($files, $links)
 
 AC_CONFIG_SUBDIRS($configdirs)
-AC_OUTPUT(Makefile
+AC_OUTPUT(Makefile .gdbinit:gdbinit.in,
 [
 dnl Autoconf doesn't provide a mechanism for modifying definitions 
 dnl provided by makefile fragments.
@@ -478,14 +478,6 @@ sed -e '/^TM_FILE[         ]*=/s,^TM_FILE[         ]*=[    ]*,&config/'"${gdb_target_cpu}"'/,
 mv -f Makefile.tmp Makefile
 changequote([,])dnl
 
-case ${srcdir} in
-.)
-;;
-*)
-grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
-echo "source ${srcdir}/.gdbinit" >> .gdbinit
-esac
-
 case x$CONFIG_HEADERS in
 xconfig.h:config.in)
 echo > stamp-h ;;
diff --git a/gdb/gdbinit.in b/gdb/gdbinit.in
new file mode 100644 (file)
index 0000000..af97d2c
--- /dev/null
@@ -0,0 +1,18 @@
+echo Setting up the environment for debugging gdb.\n
+
+set complaints 1
+
+b fatal
+
+b info_command
+commands
+       silent
+       return
+end
+
+dir @srcdir@
+dir .
+dir @srcdir@/../mmalloc
+dir @srcdir@/../libiberty
+dir @srcdir@/../bfd
+set prompt (top-gdb)