gdb-uninstalled-guile.in 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/sh
  2. # Copyright (C) 2002, 2006, 2008, 2009 Free Software Foundation
  3. #
  4. # This file is part of GUILE.
  5. #
  6. # GUILE is free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU Lesser General Public License as
  8. # published by the Free Software Foundation; either version 3, or
  9. # (at your option) any later version.
  10. #
  11. # GUILE is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU Lesser General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU Lesser General Public
  17. # License along with GUILE; see the file COPYING.LESSER. If not,
  18. # write to the Free Software Foundation, Inc., 51 Franklin Street,
  19. # Fifth Floor, Boston, MA 02110-1301 USA
  20. # Commentary:
  21. # Usage: gdb-uninstalled-guile [ARGS]
  22. #
  23. # This script runs Guile from the build tree under GDB. See
  24. # ./guile for more information.
  25. #
  26. # In addition to running ./gdb-uninstalled-guile, sometimes it's useful to
  27. # run e.g. ./check-guile -i meta/gdb-uninstalled-guile foo.test.
  28. # Code:
  29. set -e
  30. # env (set by configure)
  31. top_builddir="@top_builddir_absolute@"
  32. XDG_CACHE_HOME=${top_builddir}/cache
  33. export XDG_CACHE_HOME
  34. exec ${top_builddir}/meta/uninstalled-env ${top_builddir}/libtool --mode=execute \
  35. gdb --args ${top_builddir}/libguile/guile "$@"
  36. # And for GDB in Emacs, evaluate this form:
  37. # (gdb "@top_builddir_absolute@/meta/uninstalled-env ../libtool --mode=execute gdb --annotate=3 --args @top_builddir_absolute@/libguile/guile")