Allow ./test-nsgtk --gdb [http://blahblahblah/]

svn path=/trunk/netsurf/; revision=11882
This commit is contained in:
Daniel Silverstone 2011-03-02 12:10:06 +00:00
parent db69e8045b
commit 4e953db875
1 changed files with 13 additions and 0 deletions

View File

@ -22,4 +22,17 @@ ulimit -c unlimited
NETSURFRES=`dirname $0`/gtk/res/
export NETSURFRES
if [ "x$1" = "x--gdb" ]; then
GDB="gdb --args -x"
echo
echo
echo "**********************************************************"
echo "Remember to type 'run' and press ENTER once gdb has loaded"
echo "**********************************************************"
echo
echo
shift
fi
exec $GDB `dirname $0`/nsgtk -v "$@" 2>&1 | tee $LOG