1# Tests the case when gdb sends a character to gdbserver while
2# the gdbserver was forced invoked just before.
3# gdbserver must send a signal to itself that is wait-ed for by vgdb.
4# But if this signal is masked, then vgdb does not recuperate the control
5# and Valgrind dies. See function give_control_back_to_vgdb in m_gdbserver.c
6prog: sleepers
7args: 1 10000000 0 -S-S-S-S 1
8vgopts: --tool=none --vgdb=yes --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-nlsigvgdb
9stderr_filter: filter_stderr
10prereq: test -e gdb -a -f vgdb.invoker
11progB: gdb
12argsB: --quiet -l 60 --nx ./sleepers
13stdinB: nlsigvgdb.stdinB.gdb
14stdoutB_filter: filter_gdb
15stderrB_filter: filter_gdb
16