Only pass --args to gdb if its new enough to handle it.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@17970 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-10-24 22:53:56 +00:00
parent 15d48dff45
commit 65ea76b35c
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2003-10-25 00:50 Alexander Malmberg <alexander@malmberg.org>
* debugapp.in: Only pass --args to gdb if its new enough to handle
it. Based on patch from Ian Jones.
Fri Oct 24 15:54:41 2003 Nicola Pero <n.pero@mi.flashnet.it>
* Instance/Documentation/texi.make (internal-doc-clean): Remove

View file

@ -205,14 +205,21 @@ fi
if [ $GNUSTEP_HOST_OS = nextstep4 ]; then
"$GDB" -connect TextEdit "$file_appname" "$corearg"
else
# Old versions of gdb don't support --args, so we only use it if
# 'gdb --help' lists it.
args=
if (gdb --help | grep -e --args > /dev/null); then
args="--args"
fi
if [ -z "$corearg" ]; then
# Arguments passed to debugapp are passed over to the
# application, in the same way as it happens for openapp.
"$GDB" --args "$file_appname" "$@"
"$GDB" $args "$file_appname" "$@"
else
"$GDB" "$file_appname" "$corearg"
fi
fi
fi
fi