diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-09-13 05:54:13 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-09-13 05:54:13 +0000 |
commit | e23b25eccd45b0fe76b6e75a426cbe3de940421a (patch) | |
tree | b224609220067aa553f952267de0ee1cc3b1d340 /gas/aclocal.m4 | |
parent | 7e9825f0b7e91c329a8cc5d078322e6eb4bf573a (diff) | |
download | gdb-e23b25eccd45b0fe76b6e75a426cbe3de940421a.zip gdb-e23b25eccd45b0fe76b6e75a426cbe3de940421a.tar.gz gdb-e23b25eccd45b0fe76b6e75a426cbe3de940421a.tar.bz2 |
Generate .gdbinit file:
* aclocal.m4 (GAS_GDBINIT): New macro.
* configure.in: Use it.
* configure: Regenerated.
(using autoconf-1.117)
Diffstat (limited to 'gas/aclocal.m4')
-rw-r--r-- | gas/aclocal.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gas/aclocal.m4 b/gas/aclocal.m4 index d9d03c7..39b8b30 100644 --- a/gas/aclocal.m4 +++ b/gas/aclocal.m4 @@ -74,3 +74,17 @@ assert (a == b AC_MSG_RESULT($gas_cv_assert_ok) test $gas_cv_assert_ok = yes || AC_DEFINE(BROKEN_ASSERT) ])dnl +dnl +dnl GAS_GDBINIT +dnl Generates a .gdbinit file in the build directory pointing gdb to +dnl srcdir, if srcdir != PWD. +AC_DEFUN(GAS_GDBINIT, +[if test `cd $srcdir;pwd` = `pwd` ; then + rm -f .gdbinit + cat > .gdbinit << EOF +dir $srcdir +dir . +source $srcdir/.gdbinit +EOF +fi +])dnl |