1
0
mirror of https://github.com/ioacademy-jikim/debugging synced 2025-06-08 08:26:14 +00:00
2015-12-13 22:34:58 +09:00

20 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