blob: 37bc192fd285f4f9fdc3d6e499277ccce75b02f3 [file] [log] [blame]
#! /bin/sh
# invoker is used to test the invocation of gdbserver.
# The first argument is the nr of times vgdb has to be called.
# rest of args are given to vgdb
# At the end of the loop, an additional call is done
# but adding " -c v.kill" to kill Valgrind process.
LOOPS=$1
shift
i=0
while [ $i -lt $LOOPS ]
do
./vgdb "$@"
i=`expr $i + 1`
done
./vgdb "$@" -c v.kill