blob: b9fba58bd747d0d001fe7407cebe33c01c161b5e [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 vg.kill" to kill Valgrind process.
LOOPS=$1
shift
i=0
while [ $i -lt $LOOPS ]
do
./vgdb "$@"
i=`expr $i + 1`
done
./vgdb "$@" -c vg.kill