]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/gdbserver_tests/simulate_control_c
update
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / gdbserver_tests / simulate_control_c
1 #! /bin/sh
2
3 # simulate control_c by sending SIGUSR1 to the vgdb using prefix $1 in $2 seconds
4 VGDBPID=`./vgdb -D $1 2>&1 | awk '/vgdb pid/ {print $3}'`
5 if [ "$VGDBPID" = "" ]
6 then
7   echo "simulate_control_c could not determine the vgdb pid with " $1
8   exit 1
9 fi
10 (sleep $2; kill -10 $VGDBPID) &
11