mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
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:
parent
15d48dff45
commit
65ea76b35c
2 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
11
debugapp.in
11
debugapp.in
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue