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