blob: 37bc192fd285f4f9fdc3d6e499277ccce75b02f3 [file] [log] [blame]
sewardj3b290482011-05-06 21:02:55 +00001#! /bin/sh
2
3# invoker is used to test the invocation of gdbserver.
4# The first argument is the nr of times vgdb has to be called.
5# rest of args are given to vgdb
6# At the end of the loop, an additional call is done
sewardj30b3eca2011-06-28 08:20:39 +00007# but adding " -c v.kill" to kill Valgrind process.
sewardj3b290482011-05-06 21:02:55 +00008
9LOOPS=$1
10shift
11
12i=0
13while [ $i -lt $LOOPS ]
14do
15 ./vgdb "$@"
16 i=`expr $i + 1`
17done
18
sewardj30b3eca2011-06-28 08:20:39 +000019./vgdb "$@" -c v.kill