summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest-nsgtk13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-nsgtk b/test-nsgtk
index 3d61c5226..fe00d404f 100755
--- a/test-nsgtk
+++ b/test-nsgtk
@@ -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