Commit | Line | Data |
---|---|---|
64da3c12 AW |
1 | #!/bin/sh |
2 | ||
3 | # Copyright (C) 2002, 2006, 2008 Free Software Foundation | |
4 | # | |
5 | # This file is part of GUILE. | |
6 | # | |
7 | # GUILE is free software; you can redistribute it and/or modify | |
8 | # it under the terms of the GNU General Public License as | |
9 | # published by the Free Software Foundation; either version 2, or | |
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 | |
15 | # GNU General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public | |
18 | # License along with GUILE; see the file COPYING. If not, write | |
19 | # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth | |
20 | # Floor, Boston, MA 02110-1301 USA | |
21 | ||
22 | # Commentary: | |
23 | ||
b1368a41 | 24 | # Usage: gdb-pre-inst-guile [ARGS] |
64da3c12 | 25 | # |
b1368a41 AW |
26 | # This script runs Guile from the build tree under GDB. See |
27 | # ./pre-inst-guile for more information. | |
64da3c12 | 28 | # |
b1368a41 AW |
29 | # In addition to running ./gdb-pre-inst-guile, sometimes it's useful to |
30 | # run e.g. ./check-guile -i ./gdb-pre-inst-guile foo.test. | |
64da3c12 AW |
31 | |
32 | # Code: | |
33 | ||
b1368a41 | 34 | set -e |
64da3c12 AW |
35 | # env (set by configure) |
36 | top_builddir="@top_builddir_absolute@" | |
b1368a41 AW |
37 | exec ${top_builddir}/pre-inst-guile-env libtool --mode=execute \ |
38 | gdb --args ${top_builddir}/libguile/guile "$@" |