sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 1 | #! /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 |
sewardj | 30b3eca | 2011-06-28 08:20:39 +0000 | [diff] [blame] | 7 | # but adding " -c v.kill" to kill Valgrind process. |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 8 | |
| 9 | LOOPS=$1 |
| 10 | shift |
| 11 | |
| 12 | i=0 |
| 13 | while [ $i -lt $LOOPS ] |
| 14 | do |
| 15 | ./vgdb "$@" |
| 16 | i=`expr $i + 1` |
| 17 | done |
| 18 | |
sewardj | 30b3eca | 2011-06-28 08:20:39 +0000 | [diff] [blame] | 19 | ./vgdb "$@" -c v.kill |