allwinner_a64/android/external/valgrind/gdbserver_tests/invoker
2018-08-08 16:14:42 +08:00

19 lines
381 B
Bash
Executable file

#! /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