]> git.ipfire.org Git - thirdparty/valgrind.git/commit
synchronize access to vgdb_interrupted_tid
authorPetar Jovanovic <mips32r2@gmail.com>
Mon, 13 Nov 2017 12:12:25 +0000 (13:12 +0100)
committerPetar Jovanovic <mips32r2@gmail.com>
Mon, 13 Nov 2017 12:13:28 +0000 (13:13 +0100)
commit286d05eea0fc1059492bec127d4121770902c98c
tree8b5a43cb05f95196936e55ce6984875b2af47a53
parentcc897604813cee1f5d3c614c76e5ca9ce696e6c3
synchronize access to vgdb_interrupted_tid

Delay writing to the global vgdb_interrupted_tid until all the threads are
in interruptible state. This ensures that valgrind_wait() will see correct
value.

This solves occasional failures of gdbserver_tests/hgtls test.
coregrind/m_gdbserver/m_gdbserver.c