]> git.ipfire.org Git - thirdparty/valgrind.git/commit
After fork, vgdb activity is polled according to the nr of bbs done :
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 25 Jun 2017 20:25:50 +0000 (20:25 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 25 Jun 2017 20:25:50 +0000 (20:25 +0000)
commit2436a4ad6fee6aeb210384784162c3a8a3303cbb
tree465c40e7853f74d34713dfc11aafd49b61952eef
parent81542a63a48cbde6256d6f96b8ebd4ca09a2e64f
After fork, vgdb activity is polled according to the nr of bbs done :
once the nr of bbs done reaches the next vgdb poll, a check for vgdb
activity is done.
This might lead to the activation of gdbserver after fork.
Such poll is however not expected, unless the children is
to be trace.
This spurious poll in the forked child can cause failures
depending on the nr of bbs done before the fork, and the
nr of bbs done between the fork and the exec.

=> disable vgdb poll in the child in the cleanup after fork
in the child, unless the children have to be traced.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16454
coregrind/m_gdbserver/m_gdbserver.c