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