Set gdb from env.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@5068 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 1999-10-24 03:16:19 +00:00
parent c58f5cdef6
commit 0cb8b234b2

View file

@ -34,6 +34,9 @@ fi
if [ -z "$LIBRARY_COMBO" ]; then
LIBRARY_COMBO=@ac_cv_library_combo@
fi
if [ -z "$GDB" ]; then
GDB=gdb
fi
case $1 in
--help)
@ -169,7 +172,7 @@ if [ "$LIBRARY_COMBO" = nx-nx-nx-nil -a $GNUSTEP_HOST_OS = nextstep4 ]; then
fi
# Support for GDBbundle under OPENSTEP
gdb -connect TextEdit $gdbargs $full_appname/$appname $corefile
$GDB -connect TextEdit $gdbargs $full_appname/$appname $corefile
else
# Determine if the application has a binary for this operating system
@ -185,9 +188,9 @@ else
# Support for GDBbundle under OPENSTEP
if [ $GNUSTEP_HOST_OS = nextstep4 ]; then
gdb -connect TextEdit $full_appname/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO/$appname $corefile
$GDB -connect TextEdit $full_appname/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO/$appname $corefile
else
gdb $full_appname/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO/$appname $corefile
$GDB $full_appname/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO/$appname $corefile
fi
fi