Files
ftmemsim-valgrind/gdbserver_tests/nlsigvgdb.vgtest
Julian Seward 64940ed44a GDB server:
* Fix bug in logic related to signal-passing
* use SIGSTOP instead of SIGTRAP (avoid race condition)
(Philippe Waroquiers, philippe.waroquiers@skynet.be).  Bug 214909
comment 109.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11837
2011-06-26 09:36:38 +00:00

16 lines
664 B
Plaintext

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